Adapters. CacheAdapter

Methods

clear()

Empty a cache

del(key)

Remove a value from the cache.

Parameters:
NameTypeDescription
keyString

Cache key to remove

get(key) → {Promise}

Get a value in the cache

Parameters:
NameTypeDescription
keyString

Cache key to get

Returns:

that will eventually resolve to the value in the cache.

Type: 
Promise

put(key, value, ttl)

Set a value in the cache

Parameters:
NameTypeDescription
keyString

Cache key to set

valueString

Value to set the key

ttlString

Optional TTL