Skip to main content

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

Interface: IDatabaseCacheAdapter

Methods

getCache()

getCache(params): Promise<string>

Parameters

params

params.agentId: `${string}-${string}-${string}-${string}-${string}`

params.key: string

Returns

Promise<string>

Defined in

packages/core/src/types.ts:938


setCache()

setCache(params): Promise<boolean>

Parameters

params

params.agentId: `${string}-${string}-${string}-${string}-${string}`

params.key: string

params.value: string

Returns

Promise<boolean>

Defined in

packages/core/src/types.ts:943


deleteCache()

deleteCache(params): Promise<boolean>

Parameters

params

params.agentId: `${string}-${string}-${string}-${string}-${string}`

params.key: string

Returns

Promise<boolean>

Defined in

packages/core/src/types.ts:949