ram64
Version:
Multi-threaded 64bit memory cache database inspired by redis-like features
10 lines (7 loc) • 313 B
text/typescript
import { CommandFn, CommandOptions } from '../../commands';
import type { CacheObject } from '../../types';
import { fn as getWithOptions } from './getWithOptions';
export const fn: CommandFn = (opts: CommandOptions): boolean => {
const obj: CacheObject = getWithOptions(opts);
return !!obj;
}