Skip to Content

ChatCacheStorage

Defined in: src/lib/chatStore/vaultCache.ts:6 

Stores sealed values at account and <account>/chat-cache/<uuid> keys; set(key, null) deletes only that key.

Methods

get()

get(key: string): Promise<string | null>

Defined in: src/lib/chatStore/vaultCache.ts:7 

Parameters

ParameterType

key

string

Returns

Promise<string | null>


keys()?

optional keys(prefix: string): Promise<string[]>

Defined in: src/lib/chatStore/vaultCache.ts:10 

Lists the stored keys under prefix and returns none once a newer storage for the same account has opened, because the cache deletes every listed slot its index does not name.

Parameters

ParameterType

prefix

string

Returns

Promise<string[]>


set()

set(key: string, sealed: string | null): Promise<void>

Defined in: src/lib/chatStore/vaultCache.ts:8 

Parameters

ParameterType

key

string

sealed

string | null

Returns

Promise<void>

Last updated on