CacheAdapter

Adapters~ CacheAdapter

Methods

clear()

Empty a cache

del(key)

Remove a value from the cache.

Parameters:
Name Type Description
key String

Cache key to remove

get(key) → {Promise}

Get a value in the cache

Parameters:
Name Type Description
key String

Cache key to get

Returns:
Type:
Promise

that will eventually resolve to the value in the cache.

put(key, value, ttl)

Set a value in the cache

Parameters:
Name Type Description
key String

Cache key to set

value String

Value to set the key

ttl String

Optional TTL