RecipleRegistryCache

class

RecipleRegistryCache

source
export class RecipleRegistryCache extends BaseModule implements RecipleRegistryCache.Options
export class RecipleRegistryCache extends BaseModule implements RecipleRegistryCache.Options
constructor(options?: RecipleRegistryCache.Options)
constructor(options?: RecipleRegistryCache.Options)
ParamTypeRequired
options
options
RecipleRegistryCache.Options
RecipleRegistryCache.Options
No
cachePath(): string
cachePath(): string

Returns:

string
string

public async source

.onReady()

onReady(): Promise<void>
onReady(): Promise<void>

Returns:

Promise<void>
Promise<void>

public async source

.readCacheEntry()

readCacheEntry(): Promise<RecipleRegistryCache.CacheEntry|null>
readCacheEntry(): Promise<RecipleRegistryCache.CacheEntry|null>

Returns:

Promise<RecipleRegistryCache.CacheEntry|null>
Promise<RecipleRegistryCache.CacheEntry|null>

public async source

.writeCacheEntry(...)

writeCacheEntry(entry?: RecipleRegistryCache.CacheEntry): Promise<void>
writeCacheEntry(entry?: RecipleRegistryCache.CacheEntry): Promise<void>
ParamTypeRequired
entry
entry
RecipleRegistryCache.CacheEntry
RecipleRegistryCache.CacheEntry
No

Returns:

Promise<void>
Promise<void>

public async source

.clearCacheEntry()

clearCacheEntry(): Promise<void>
clearCacheEntry(): Promise<void>

Returns:

Promise<void>
Promise<void>

public async source

.createCacheEntry()

createCacheEntry(): Promise<RecipleRegistryCache.CacheEntry>
createCacheEntry(): Promise<RecipleRegistryCache.CacheEntry>

Returns:

Promise<RecipleRegistryCache.CacheEntry>
Promise<RecipleRegistryCache.CacheEntry>

public source

.isCacheHit(...)

isCacheHit(cached: RecipleRegistryCache.CacheEntry, current: RecipleRegistryCache.CacheEntry): boolean
isCacheHit(cached: RecipleRegistryCache.CacheEntry, current: RecipleRegistryCache.CacheEntry): boolean
ParamTypeRequired
cached
cached
RecipleRegistryCache.CacheEntry
RecipleRegistryCache.CacheEntry
Yes
current
current
RecipleRegistryCache.CacheEntry
RecipleRegistryCache.CacheEntry
Yes

Returns:

boolean
boolean

private source

.isEnabled()

isEnabled(): boolean
isEnabled(): boolean

Returns:

boolean
boolean

public source

.id

string
string
boolean
boolean
string
string
number
number
string
string
boolean
boolean
private source

.logger