On this page

Source Code: lib/CacheFacade.js#L214
new CacheFacade(): CacheFacade
Returns:CacheFacade
cacheFacade.get(identifier, etag, callback): void
Source Code: lib/CacheFacade.js#L292
Attributes
identifier:string
etag:Etag | null

Returns value.

cacheFacade.getChildCache(name): CacheFacade
Source Code: lib/CacheFacade.js#L243
Attributes
name:string
Returns:CacheFacade

Returns child cache.

cacheFacade.getItemCache(identifier, etag): ItemCacheFacade
Source Code: lib/CacheFacade.js#L257
Attributes
identifier:string
etag:Etag | null

Returns item cache.

cacheFacade.getLazyHashedEtag(obj): Etag
Source Code: lib/CacheFacade.js#L270
Attributes
Returns:Etag

Gets lazy hashed etag.

cacheFacade.getPromise(identifier, etag): Promise<T>
Source Code: lib/CacheFacade.js#L303
Attributes
identifier:string
etag:Etag | null
Returns:Promise<T>

Returns promise with the data.

cacheFacade.isEnabled(): boolean
Source Code: lib/CacheFacade.js#L234
Returns:boolean

Returns whether a cache backend is active.

cacheFacade.mergeEtags(a, b): Etag
Source Code: lib/CacheFacade.js#L280
Attributes
Returns:Etag

Merges the provided values into a single result.

cacheFacade.provide(identifier, etag, computer, callback): void
Source Code: lib/CacheFacade.js#L357
Attributes
identifier:string
etag:Etag | null
computer:(callback: CallbackNormalErrorCache<T>) => void

Processes the provided identifier.

cacheFacade.providePromise(identifier, etag, computer): Promise<T>
Source Code: lib/CacheFacade.js#L379
Attributes
identifier:string
etag:Etag | null
computer:() => T | Promise<T>
Returns:Promise<T>

Returns promise with the data.

cacheFacade.store(identifier, etag, data, callback): void
Source Code: lib/CacheFacade.js#L324
Attributes
identifier:string
etag:Etag | null
data:T

Processes the provided identifier.

cacheFacade.storePromise(identifier, etag, data): Promise<void>
Source Code: lib/CacheFacade.js#L336
Attributes
identifier:string
etag:Etag | null
data:T
Returns:Promise<void>

Stores the provided identifier.