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
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<string | null>
keys()?
optionalkeys(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
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<string[]>
set()
set(
key:string,sealed:string|null):Promise<void>
Defined in: src/lib/chatStore/vaultCache.ts:8
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Promise<void>