UNPKG

ram64

Version:

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

8 lines (6 loc) 266 B
import { CommandFn, CommandOptions } from '../../commands'; import type { Shard } from '../../types'; export const fn: CommandFn = (opts: CommandOptions): boolean => { const shard = opts.shard as Shard; return shard.map.delete(opts.key as string); }