UNPKG

@silverwind/ioredis-mock

Version:

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

16 lines (12 loc) 471 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.zscanStream = zscanStream; var _readableScan = _interopRequireDefault(require("../commands-utils/readable-scan")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function zscanStream(key, opt = {}) { const options = opt instanceof Object ? opt : {}; options.key = key; return new _readableScan.default(this.zscan, options); }