Files
bitburner-src/markdown/bitburner.darknet.opencache.md
Michael Ficocelli 6073964768 DARKNET: Darkweb Expansion Project & Bitnode (#2139)
This is BN15. It is a really big change; see the PR for all the details.
2026-02-03 03:40:36 -08:00

77 lines
1020 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Darknet](./bitburner.darknet.md) &gt; [openCache](./bitburner.darknet.opencache.md)
## Darknet.openCache() method
Opens a .cache file on the current server to acquire its valuable contents.
**Signature:**
```typescript
openCache(filename: string, suppressToast?: boolean): CacheResult;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
filename
</td><td>
string
</td><td>
Name of the cache file to open.
</td></tr>
<tr><td>
suppressToast
</td><td>
boolean
</td><td>
_(Optional)_ Optional. If true, suppresses the toast notification that appears when opening a cache file. Defaults to false.
</td></tr>
</tbody></table>
**Returns:**
[CacheResult](./bitburner.cacheresult.md)
An object containing the contents of the cache, and the karma lost.
## Remarks
RAM cost: 2 GB