Skip to main content

@ai16z/eliza v0.1.6-alpha.4 / MemoryCacheAdapter

Class: MemoryCacheAdapter

Implements

Constructors

new MemoryCacheAdapter()

new MemoryCacheAdapter(initalData?): MemoryCacheAdapter

Parameters

initalData?: Map<string, string>

Returns

MemoryCacheAdapter

Defined in

packages/core/src/cache.ts:19

Properties

data

data: Map<string, string>

Defined in

packages/core/src/cache.ts:17

Methods

get()

get(key): Promise<string>

Parameters

key: string

Returns

Promise<string>

Implementation of

ICacheAdapter.get

Defined in

packages/core/src/cache.ts:23


set()

set(key, value): Promise<void>

Parameters

key: string

value: string

Returns

Promise<void>

Implementation of

ICacheAdapter.set

Defined in

packages/core/src/cache.ts:27


delete()

delete(key): Promise<void>

Parameters

key: string

Returns

Promise<void>

Implementation of

ICacheAdapter.delete

Defined in

packages/core/src/cache.ts:31