UNPKG

@dephub/cache

Version:

Simple file-based cache with persistent storage for Node.js applications

9 lines (8 loc) 197 B
import { FileCache as i } from "./file.js"; import { MemoryCache as o } from "./memory.js"; function n(e = "file", r) { return e === "file" ? new i(r) : new o(); } export { n as createCache };