Skip to main content

Class: EngineCacheEntrySet

A set of cache entries returned by a query to a cache

Extends

  • BaseClient

Constructors

new EngineCacheEntrySet()

new EngineCacheEntrySet(parent?, _id?, _diskSpaceBytes?, _entryCount?): EngineCacheEntrySet

Constructor is used for internal usage only, do not create object from it.

Parameters

parent?

parent.ctx?: Context

parent.queryTree?: QueryTree[]

_id?: EngineCacheEntrySetID

_diskSpaceBytes?: number

_entryCount?: number

Returns

EngineCacheEntrySet

Overrides

BaseClient.constructor

Methods

diskSpaceBytes()

diskSpaceBytes(): Promise<number>

The total disk space used by the cache entries in this set.

Returns

Promise<number>


entries()

entries(): Promise<EngineCacheEntry[]>

The list of individual cache entries in the set

Returns

Promise<EngineCacheEntry[]>


entryCount()

entryCount(): Promise<number>

The number of cache entries in this set.

Returns

Promise<number>


id()

id(): Promise<EngineCacheEntrySetID>

A unique identifier for this EngineCacheEntrySet.

Returns

Promise<EngineCacheEntrySetID>