UNPKG

ram64

Version:

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

7 lines (5 loc) 237 B
import { CommandFn, CommandOptions } from '../../commands'; import { Shards } from '../shards'; export const fn: CommandFn = (opts: CommandOptions): number => { return Shards.reduce((acc, shard) => acc + shard.map.size, 0); }