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>; }
Methods
delete()
delete(
id:string):boolean|void|Promise<boolean|void>
Delete the cache entry for the given ID
Parameters
id
string
Returns
boolean | void | Promise<boolean | void>
get()
get(
id:string,dateOnly?:boolean):EncryptionSessionCacheEntry|Promise<EncryptionSessionCacheEntry>
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()
keys():
Iterable<string,any,any> |Promise<Iterable<string,any,any>>
Get list of all IDs for which there is a cache entry
Returns
Iterable<string, any, any> | Promise<Iterable<string, any, any>>
set()
set(
id:string,value:EncryptionSessionCacheEntry):void|EncryptionSessionCache|Promise<void|EncryptionSessionCache>
Store something in the cache.
Parameters
id
string
value
Returns
void | EncryptionSessionCache | Promise<void | EncryptionSessionCache>