mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
1020 B
1020 B
Home > bitburner > Darknet > openCache
Darknet.openCache() method
Opens a .cache file on the current server to acquire its valuable contents.
Signature:
openCache(filename: string, suppressToast?: boolean): CacheResult;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
filename |
string |
Name of the cache file to open. |
|
suppressToast |
boolean |
(Optional) Optional. If true, suppresses the toast notification that appears when opening a cache file. Defaults to false. |
Returns:
An object containing the contents of the cache, and the karma lost.
Remarks
RAM cost: 2 GB