1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.zscan = zscan;
|
7 |
|
8 | var _scanCommand = require('../commands-utils/scan-command.common');
|
9 |
|
10 | function zscan(key, cursor) {
|
11 | if (!this.data.has(key)) {
|
12 | return ['0', []];
|
13 | }
|
14 | var zKeys = [];
|
15 | this.data.get(key).forEach(function (_, mkey) {
|
16 | return zKeys.push(mkey);
|
17 | });
|
18 |
|
19 | for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
20 | args[_key - 2] = arguments[_key];
|
21 | }
|
22 |
|
23 | return _scanCommand.scanHelper.apply(undefined, [zKeys, 1, cursor].concat(args));
|
24 | } |
\ | No newline at end of file |