faastjs.persistentcache.set.md

April 5, 2024 ยท View on GitHub

faastjs > PersistentCache > set

PersistentCache.set() method

Set the cache key to the given value.

Signature:

set(key: string, value: Buffer | string | Uint8Array): Promise<void>;

Parameters

Parameter

Type

Description

key

string

value

Buffer | string | Uint8Array

**Returns:**

Promise<void>

a Promise that resolves when the cache entry has been persisted.