Type Alias: EncryptionSessionCache
EncryptionSessionCache: {
delete
:boolean
|void
|Promise
<boolean
|void
>;get
:EncryptionSessionCacheEntry
|Promise
<EncryptionSessionCacheEntry
>;keys
:Iterable
<string
,any
,any
> |Promise
<Iterable
<string
,any
,any
>>;set
:void
|EncryptionSessionCache
|Promise
<void
|EncryptionSessionCache
>; }
Type declaration
delete()
Delete the cache entry for the given ID
Parameters
id
string
Returns
boolean
| void
| Promise
<boolean
| void
>
get()
Retrieve something from the cache.
If the given sessionId is not in the cache, must return null
or undefined
.
Optionally, the second argument, dateOnly
, can be implemented. If dateOnly
is true
, the function may return only serializationDate
in the return object, and set sessionSymKey
to null
. This allows some optimizations of the cleanup.
Parameters
id
string
dateOnly?
boolean
Returns
EncryptionSessionCacheEntry
| Promise
<EncryptionSessionCacheEntry
>
keys()
Get list of all IDs for which there is a cache entry
Returns
Iterable
<string
, any
, any
> | Promise
<Iterable
<string
, any
, any
>>
set()
Store something in the cache.
Parameters
id
string
value
Returns
void
| EncryptionSessionCache
| Promise
<void
| EncryptionSessionCache
>