Team Ai
Apppublic

oex2003/evolution-api

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
abstract.cache.ts20 linesDownload Raw Back to abstract
1export interface ICache {2  get(key: string): Promise<any>;3 4  hGet(key: string, field: string): Promise<any>;5 6  set(key: string, value: any, ttl?: number): void;7 8  hSet(key: string, field: string, value: any): Promise<void>;9 10  has(key: string): Promise<boolean>;11 12  keys(appendCriteria?: string): Promise<string[]>;13 14  delete(key: string | string[]): Promise<number>;15 16  hDelete(key: string, field: string): Promise<any>;17 18  deleteAll(appendCriteria?: string): Promise<number>;19}20