UNPKG

@silverwind/ioredis-mock

Version:

This library emulates ioredis by performing all operations in-memory.

16 lines (13 loc) 279 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exists = exists; function exists(...keys) { return keys.reduce((totalExists, key) => { if (this.data.has(key)) { return totalExists + 1; } return totalExists; }, 0); }