@atomist/sdm
Version:
Atomist Software Delivery Machine SDK
14 lines • 314 B
TypeScript
export interface CacheStats {
gets: number;
hits: number;
}
/**
* Simple interface for a string-keyed cache
*/
export interface SimpleCache<T> {
put(key: string, value: T): void;
get(key: string): T;
evict(key: string): void;
stats: CacheStats;
}
//# sourceMappingURL=SimpleCache.d.ts.map