Skip to main content

@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

packages/core/src/cache.ts:93

Properties

adapter

adapter: CacheAdapter

Defined in

packages/core/src/cache.ts:91

Methods

get()

get<T>(key): Promise<T>

Type Parameters

T = unknown

Parameters

key: string

Returns

Promise<T>

Implementation of

ICacheManager.get

Defined in

packages/core/src/cache.ts:97


set()

set<T>(key, value, opts?): Promise<void>

Type Parameters

T

Parameters

key: string

value: T

opts?: CacheOptions

Returns

Promise<void>

Implementation of

ICacheManager.set

Defined in

packages/core/src/cache.ts:116


delete()

delete(key): Promise<void>

Parameters

key: string

Returns

Promise<void>

Implementation of

ICacheManager.delete

Defined in

packages/core/src/cache.ts:123