Class: EngineCache
A cache storage for the Dagger engine
Extends
BaseClient
Constructors
Constructor
new EngineCache(
ctx?
,_id?
,_keepBytes?
,_maxUsedSpace?
,_minFreeSpace?
,_prune?
,_reservedSpace?
):EngineCache
Constructor is used for internal usage only, do not create object from it.
Parameters
ctx?
Context
_id?
_keepBytes?
number
_maxUsedSpace?
number
_minFreeSpace?
number
_prune?
_reservedSpace?
number
Returns
EngineCache
Overrides
BaseClient.constructor
Methods
entrySet()
entrySet(
opts?
):EngineCacheEntrySet
The current set of entries in the cache
Parameters
opts?
Returns
id()
id():
Promise
<EngineCacheID
>
A unique identifier for this EngineCache.
Returns
Promise
<EngineCacheID
>
keepBytes()
keepBytes():
Promise
<number
>
The maximum bytes to keep in the cache without pruning, after which automatic pruning may kick in.
Returns
Promise
<number
>
Deprecated
Use minFreeSpace instead.
maxUsedSpace()
maxUsedSpace():
Promise
<number
>
The maximum bytes to keep in the cache without pruning.
Returns
Promise
<number
>
minFreeSpace()
minFreeSpace():
Promise
<number
>
The target amount of free disk space the garbage collector will attempt to leave.
Returns
Promise
<number
>
prune()
prune():
Promise
<void
>
Prune the cache of releaseable entries
Returns
Promise
<void
>
reservedSpace()
reservedSpace():
Promise
<number
>
Returns
Promise
<number
>