On this page

new CacheFacade(): CacheFacade
get(identifier, etag, callback): void
Attributes
identifier:<string>
etag:<Etag> | <null>
callback:
{CallbackCacheCacheFacade }
Returns:<void>

Returns value.


getChildCache(name): CacheFacade
Attributes

Returns child cache.


getItemCache(identifier, etag): ItemCacheFacade
Attributes
identifier:<string>
etag:<Etag> | <null>

Returns item cache.


getLazyHashedEtag(obj): Etag
Attributes

Gets lazy hashed etag.


getPromise(identifier, etag): Promise<T>
Attributes
identifier:<string>
etag:<Etag> | <null>
Returns:
{Promise }

Returns promise with the data.


mergeEtags(a, b): Etag
Attributes
Returns:<Etag>

Merges the provided values into a single result.


provide(identifier, etag, computer, callback): void
Attributes
identifier:<string>
etag:<Etag> | <null>
computer:
{(callback: CallbackNormalErrorCache ) => void}
callback:
{CallbackNormalErrorCache }
Returns:<void>

Processes the provided identifier.


providePromise(identifier, etag, computer): Promise<T>
Attributes
identifier:<string>
etag:<Etag> | <null>
computer:
{() => T | Promise }
Returns:
{Promise }

Returns promise with the data.


store(identifier, etag, data, callback): void
Attributes
identifier:<string>
etag:<Etag> | <null>
data:
{T}
callback:
{CallbackCacheCacheFacade }
Returns:<void>

Processes the provided identifier.


storePromise(identifier, etag, data): Promise<void>
Attributes
identifier:<string>
etag:<Etag> | <null>
data:
{T}
Returns:
{Promise }

Stores the provided identifier.