Home > bitburner > HacknetServersFormulas > cacheUpgradeCost
Calculate cost of upgrading hacknet server cache.
Signature:
cacheUpgradeCost(startingCache: number, extraCache?: number): number;| Parameter | Type | Description |
|---|---|---|
| startingCache | number | starting cache level |
| extraCache | number | amount of levels of cache to purchase (defaults to 1) |
Returns:
number
The calculated cost.