@medusajs/cache-inmemory
Version:
In-memory Cache Module for Medusa
17 lines • 335 B
TypeScript
/**
* Shape of a record saved in `in-memory` cache
*/
export type CacheRecord<T> = {
data: T;
/**
* Timestamp in milliseconds
*/
expire: number;
};
export type InMemoryCacheModuleOptions = {
/**
* Time to keep data in cache (in seconds)
*/
ttl?: number;
};
//# sourceMappingURL=index.d.ts.map