@ai16z/eliza v0.1.6-alpha.4 / CacheManager
Class: CacheManager<CacheAdapter>
Type Parameters
• CacheAdapter extends ICacheAdapter
= ICacheAdapter
Implements
Constructors
new CacheManager()
new CacheManager<
CacheAdapter
>(adapter
):CacheManager
<CacheAdapter
>
Parameters
• adapter: CacheAdapter
Returns
CacheManager
<CacheAdapter
>
Defined in
Properties
adapter
adapter:
CacheAdapter
Defined in
Methods
get()
get<
T
>(key
):Promise
<T
>
Type Parameters
• T = unknown
Parameters
• key: string
Returns
Promise
<T
>
Implementation of
Defined in
set()
set<
T
>(key
,value
,opts
?):Promise
<void
>
Type Parameters
• T
Parameters
• key: string
• value: T
• opts?: CacheOptions
Returns
Promise
<void
>
Implementation of
Defined in
packages/core/src/cache.ts:116
delete()
delete(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>