@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
13 lines • 535 B
TypeScript
import { MastraServerCache } from './base.js';
export declare class InMemoryServerCache extends MastraServerCache {
private cache;
constructor();
get(key: string): Promise<unknown>;
set(key: string, value: unknown): Promise<void>;
listLength(key: string): Promise<number>;
listPush(key: string, value: unknown): Promise<void>;
listFromTo(key: string, from: number, to?: number): Promise<unknown[]>;
delete(key: string): Promise<void>;
clear(): Promise<void>;
}
//# sourceMappingURL=inmemory.d.ts.map