<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [bitburner](./bitburner.md) > [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) > [cacheUpgradeCost](./bitburner.hacknetserversformulas.cacheupgradecost.md) ## HacknetServersFormulas.cacheUpgradeCost() method <b>Signature:</b> ```typescript cacheUpgradeCost(startingCache: number, extraCache?: number): number; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | startingCache | number | | | extraCache | number | | <b>Returns:</b> number