Skip to main content

@okcashpro/okai v0.1.7-alpha.1 / FsCacheAdapter

Class: FsCacheAdapter

Implements

Constructors

new FsCacheAdapter()

new FsCacheAdapter(dataDir): FsCacheAdapter

Parameters

dataDir: string

Returns

FsCacheAdapter

Defined in

packages/core/src/cache.ts:37

Methods

get()

get(key): Promise<string>

Parameters

key: string

Returns

Promise<string>

Implementation of

ICacheAdapter.get

Defined in

packages/core/src/cache.ts:39


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:48


delete()

delete(key): Promise<void>

Parameters

key: string

Returns

Promise<void>

Implementation of

ICacheAdapter.delete

Defined in

packages/core/src/cache.ts:59