mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 20:32:23 -06:00
20 lines
484 B
TypeScript
20 lines
484 B
TypeScript
export interface ICache {
|
|
get(key: string): Promise<any>;
|
|
|
|
hGet(key: string, field: string): Promise<any>;
|
|
|
|
set(key: string, value: any, ttl?: number): void;
|
|
|
|
hSet(key: string, field: string, value: any): Promise<void>;
|
|
|
|
has(key: string): Promise<boolean>;
|
|
|
|
keys(appendCriteria?: string): Promise<string[]>;
|
|
|
|
delete(key: string | string[]): Promise<number>;
|
|
|
|
hDelete(key: string, field: string): Promise<any>;
|
|
|
|
deleteAll(appendCriteria?: string): Promise<number>;
|
|
}
|