@ai16z/eliza v0.1.6-alpha.4 / DbCacheAdapter
Class: DbCacheAdapter
Implements
Constructors
new DbCacheAdapter()
new DbCacheAdapter(
db
,agentId
):DbCacheAdapter
Parameters
• db: IDatabaseCacheAdapter
• agentId: `${string}-${string}-${string}-${string}-${string}`
Returns
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
>