mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-11 02:49:36 -06:00
14 lines
315 B
TypeScript
14 lines
315 B
TypeScript
export interface ICache {
|
|
get(key: string): Promise<any>;
|
|
|
|
set(key: string, value: any, ttl?: number): void;
|
|
|
|
has(key: string): Promise<boolean>;
|
|
|
|
keys(appendCriteria?: string): Promise<string[]>;
|
|
|
|
delete(key: string | string[]): Promise<number>;
|
|
|
|
deleteAll(appendCriteria?: string): Promise<number>;
|
|
}
|