Class: EngineCache
A cache storage for the Dagger engine
Extends
BaseClient
Constructors
new EngineCache()
new EngineCache(
parent
?,_id
?,_keepBytes
?,_maxUsedSpace
?,_minFreeSpace
?,_prune
?,_reservedSpace
?):EngineCache
Constructor is used for internal usage only, do not create object from it.
Parameters
• parent?
• parent.ctx?: Context
• parent.queryTree?: QueryTree
[]
• _id?: EngineCacheID
• _keepBytes?: number
• _maxUsedSpace?: number
• _minFreeSpace?: number
• _prune?: Void
• _reservedSpace?: number
Returns
Overrides
BaseClient.constructor
Methods
entrySet()
entrySet():
EngineCacheEntrySet
The current set of entries in the cache
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
>