Class: InMemoryPayloadCache
Experimental
In-memory, LRU PayloadCache. This is the default payload cache.
Implements
Constructors
Constructor
new InMemoryPayloadCache(
__namedParameters?):InMemoryPayloadCache
Experimental
Parameters
__namedParameters?
Returns
InMemoryPayloadCache
Methods
get()
get(
key):Promise<IPayload|undefined>
Experimental
Returns the payload stored under key, or undefined on a miss.
Parameters
key
string
Returns
Promise<IPayload | undefined>
Implementation of
set()
set(
key,payload):Promise<boolean>
Experimental
Returns whether the cache accepted payload.
Parameters
key
string
payload
Returns
Promise<boolean>