<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) &gt; [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