UNPKG

@servable/parse-server-engine

Version:
22 lines (20 loc) 383 B
import memory from "./memory/index.js" import empty from "../empty.js" export default ({ cache = {} }) => { const { type, params } = cache switch (type) { case 'inMemory': { const { window = 10, extent = 'user' } = params return memory({ duration: window, extent }) } default: { return empty } } }