express-aggressive-cache
Version:
An aggressive yet obedient cache middleware for express
11 lines (10 loc) • 348 B
TypeScript
import { Store } from "../types";
interface MemoryStoreOptions {
/**
* The maximum size of the cache, checked by applying the length
* function to all values in the cache. Defaults to `Infinity`.
*/
max?: number;
}
export declare const memoryStore: (options?: MemoryStoreOptions | undefined) => <T>() => Store<T>;
export {};