MCPcopy Create free account
hub / github.com/evolution-foundation/evolution-api / ICache

Interface ICache

src/api/abstract/abstract.cache.ts:1–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers 54

bootstrapFunction · 0.65
originFunction · 0.65
constructorMethod · 0.65
constructorMethod · 0.65
getMethod · 0.65
constructorMethod · 0.65
getMethod · 0.65
hGetMethod · 0.65
hGetMethod · 0.65
readDataFunction · 0.65
readDataFunction · 0.65
hGetMethod · 0.65

Implementers 3

RedisCachesrc/cache/rediscache.ts
LocalCachesrc/cache/localcache.ts
CacheServicesrc/api/services/cache.service.ts

Calls

no outgoing calls

Tested by

no test coverage detected