Class: Cache

Cache()

Cache Stores and retrieves values identified by publicId / options pairs

Constructor

new Cache()

Source:

Members

(static) CacheAdapter :CacheAdapter

The adapter interface. Extend this class to implement a specific adapter.
Type:
Source:

Methods

(static) flushAll() → {*}

Clear all items in the cache
Source:
Returns:
Returns the value from the adapter's flushAll() method
Type
*

(static) get(publicId, options) → {*}

Get an item from the cache
Parameters:
Name Type Description
publicId string
options object
Source:
Returns:
Type
*

(static) getAdapter() → {CacheAdapter}

Get the adapter the Cache is using
Source:
Returns:
the current cache adapter
Type
CacheAdapter

(static) set(publicId, options, value) → {*}

Set a new value in the cache
Parameters:
Name Type Description
publicId string
options object
value *
Source:
Returns:
Type
*

(static) setAdapter(adapter)

Set the cache adapter
Parameters:
Name Type Description
adapter CacheAdapter The cache adapter
Source: