faastjs.persistentcache.get.md

April 5, 2024 ยท View on GitHub

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

**Returns:**

Promise<Buffer | undefined>

Contents

  1. 1PersistentCache.get() method
  2. 2Parameters