@leyyo/cache
Version:
Common cache library
12 lines (11 loc) • 435 B
TypeScript
export declare const SaveSpanItems: readonly ["ttl", "timestamp", "keep-ttl", "persistent"];
/**
* Save span for expiry times
*
* @enum {string} - literal
* - ttl: Expire ttl (time to live, from now) [EX, PX]
* - timestamp - Expire at given deadline [EXAT, PXAT]
* - keep-ttl: Keeps TTL (remaining time), it's not changed {KEEPTTL}
* - persistent: Stores as persistent
* */
export type SaveSpan = typeof SaveSpanItems[number];