Type Alias: EncryptionSessionCache
EncryptionSessionCache:
object
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
> | Promise
<Iterable
<string
>>
set()
Store something in the cache.
Parameters
• id: string
• value: EncryptionSessionCacheEntry
Returns
void
| EncryptionSessionCache
| Promise
<void
| EncryptionSessionCache
>