@okcashpro/okai v0.1.7-alpha.1 / MemoryCacheAdapter
Class: MemoryCacheAdapter
Implements
Constructors
new MemoryCacheAdapter()
new MemoryCacheAdapter(
initalData
?):MemoryCacheAdapter
Parameters
• initalData?: Map
<string
, string
>
Returns
Defined in
Properties
data
data:
Map
<string
,string
>
Defined in
Methods
get()
get(
key
):Promise
<string
>
Parameters
• key: string
Returns
Promise
<string
>
Implementation of
Defined in
set()
set(
key
,value
):Promise
<void
>
Parameters
• key: string
• value: string
Returns
Promise
<void
>
Implementation of
Defined in
delete()
delete(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>