faastjs > PersistentCache > get
PersistentCache.get() method
Retrieves the value previously set for the given key, or undefined if the key is not found.
Signature:
get(key: string): Promise<Buffer | undefined>;
Parameters
Parameter |
Type |
Description |
---|---|---|
key |
string |
Promise<Buffer | undefined>