Skip to content

Latest commit

 

History

History
71 lines (37 loc) · 856 Bytes

faastjs.persistentcache.set.md

File metadata and controls

71 lines (37 loc) · 856 Bytes
id title hide_title
faastjs.persistentcache.set
PersistentCache.set() method
true

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.