@nomyx/assistant
Version:
A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)
12 lines (11 loc) • 446 B
TypeScript
import { CacheManager } from '../types/cache';
import { ProviderResponse } from '../types/chat';
export declare class RedisCacheManager implements CacheManager {
private client;
constructor(redisUrl: string);
get(key: string): Promise<ProviderResponse | null>;
set(key: string, value: ProviderResponse, ttl: number): Promise<void>;
delete(key: string): Promise<void>;
clear(): Promise<void>;
close(): Promise<void>;
}