UNPKG

ram64

Version:

Multi-threaded 64bit memory cache database inspired by redis-like features

10 lines (7 loc) 314 B
import { CommandFn, CommandOptions } from '../../commands'; import type { CacheObject } from '../../types'; import { fn as getWithOptions } from './getWithOptions'; export const fn: CommandFn = (opts: CommandOptions): any => { const obj: CacheObject = getWithOptions(opts); return obj?.value; }