@upstash/redis 1.3.2-alpha.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -8
- package/esm/pkg/commands/append.js +2 -2
- package/esm/pkg/commands/bitcount.js +2 -2
- package/esm/pkg/commands/bitop.js +2 -2
- package/esm/pkg/commands/bitpos.js +2 -2
- package/esm/pkg/commands/command.js +13 -2
- package/esm/pkg/commands/dbsize.js +2 -2
- package/esm/pkg/commands/decr.js +2 -2
- package/esm/pkg/commands/decrby.js +2 -2
- package/esm/pkg/commands/del.js +2 -2
- package/esm/pkg/commands/echo.js +2 -2
- package/esm/pkg/commands/eval.js +2 -2
- package/esm/pkg/commands/evalsha.js +2 -2
- package/esm/pkg/commands/exists.js +2 -2
- package/esm/pkg/commands/expire.js +2 -2
- package/esm/pkg/commands/expireat.js +2 -2
- package/esm/pkg/commands/flushall.js +3 -3
- package/esm/pkg/commands/flushdb.js +2 -2
- package/esm/pkg/commands/get.js +2 -2
- package/esm/pkg/commands/getbit.js +2 -2
- package/esm/pkg/commands/getrange.js +2 -2
- package/esm/pkg/commands/getset.js +2 -2
- package/esm/pkg/commands/hdel.js +2 -2
- package/esm/pkg/commands/hexists.js +2 -2
- package/esm/pkg/commands/hget.js +2 -2
- package/esm/pkg/commands/hgetall.js +5 -2
- package/esm/pkg/commands/hincrby.js +2 -2
- package/esm/pkg/commands/hincrbyfloat.js +2 -2
- package/esm/pkg/commands/hkeys.js +2 -2
- package/esm/pkg/commands/hlen.js +2 -2
- package/esm/pkg/commands/hmget.js +5 -2
- package/esm/pkg/commands/hmset.js +2 -2
- package/esm/pkg/commands/hscan.js +6 -6
- package/esm/pkg/commands/hset.js +2 -2
- package/esm/pkg/commands/hsetnx.js +2 -2
- package/esm/pkg/commands/hstrlen.js +2 -2
- package/esm/pkg/commands/hvals.js +2 -2
- package/esm/pkg/commands/incr.js +2 -2
- package/esm/pkg/commands/incrby.js +2 -2
- package/esm/pkg/commands/incrbyfloat.js +2 -2
- package/esm/pkg/commands/keys.js +2 -2
- package/esm/pkg/commands/lindex.js +2 -2
- package/esm/pkg/commands/linsert.js +2 -2
- package/esm/pkg/commands/llen.js +2 -2
- package/esm/pkg/commands/lpop.js +2 -2
- package/esm/pkg/commands/lpush.js +2 -2
- package/esm/pkg/commands/lpushx.js +2 -2
- package/esm/pkg/commands/lrange.js +2 -2
- package/esm/pkg/commands/lrem.js +2 -2
- package/esm/pkg/commands/lset.js +2 -2
- package/esm/pkg/commands/ltrim.js +2 -2
- package/esm/pkg/commands/mget.js +2 -2
- package/esm/pkg/commands/mset.js +2 -2
- package/esm/pkg/commands/msetnx.js +2 -2
- package/esm/pkg/commands/persist.js +2 -2
- package/esm/pkg/commands/pexpire.js +2 -2
- package/esm/pkg/commands/pexpireat.js +2 -2
- package/esm/pkg/commands/ping.js +4 -4
- package/esm/pkg/commands/psetex.js +2 -2
- package/esm/pkg/commands/pttl.js +2 -2
- package/esm/pkg/commands/publish.js +2 -2
- package/esm/pkg/commands/randomkey.js +2 -2
- package/esm/pkg/commands/rename.js +2 -2
- package/esm/pkg/commands/renamenx.js +2 -2
- package/esm/pkg/commands/rpop.js +2 -2
- package/esm/pkg/commands/rpush.js +2 -2
- package/esm/pkg/commands/rpushx.js +2 -2
- package/esm/pkg/commands/sadd.js +2 -2
- package/esm/pkg/commands/scan.js +2 -2
- package/esm/pkg/commands/scard.js +2 -2
- package/esm/pkg/commands/script_exists.js +3 -2
- package/esm/pkg/commands/script_flush.js +2 -2
- package/esm/pkg/commands/script_load.js +2 -2
- package/esm/pkg/commands/sdiff.js +2 -2
- package/esm/pkg/commands/sdiffstore.js +2 -2
- package/esm/pkg/commands/set.js +6 -6
- package/esm/pkg/commands/setbit.js +2 -2
- package/esm/pkg/commands/setex.js +2 -2
- package/esm/pkg/commands/setnx.js +2 -2
- package/esm/pkg/commands/setrange.js +2 -2
- package/esm/pkg/commands/sinter.js +2 -2
- package/esm/pkg/commands/sinterstore.js +2 -2
- package/esm/pkg/commands/sismember.js +2 -2
- package/esm/pkg/commands/smembers.js +2 -2
- package/esm/pkg/commands/smove.js +2 -2
- package/esm/pkg/commands/spop.js +2 -2
- package/esm/pkg/commands/srandmember.js +2 -2
- package/esm/pkg/commands/srem.js +2 -2
- package/esm/pkg/commands/sscan.js +2 -2
- package/esm/pkg/commands/strlen.js +2 -2
- package/esm/pkg/commands/sunion.js +2 -2
- package/esm/pkg/commands/sunionstore.js +2 -2
- package/esm/pkg/commands/time.js +2 -2
- package/esm/pkg/commands/touch.js +2 -2
- package/esm/pkg/commands/ttl.js +2 -2
- package/esm/pkg/commands/type.js +2 -2
- package/esm/pkg/commands/unlink.js +2 -2
- package/esm/pkg/commands/zadd.js +7 -7
- package/esm/pkg/commands/zcard.js +2 -2
- package/esm/pkg/commands/zcount.js +2 -2
- package/esm/pkg/commands/zincrby.js +3 -3
- package/esm/pkg/commands/zinterstore.js +4 -4
- package/esm/pkg/commands/zlexcount.js +2 -2
- package/esm/pkg/commands/zpopmax.js +2 -2
- package/esm/pkg/commands/zpopmin.js +2 -2
- package/esm/pkg/commands/zrange.js +2 -2
- package/esm/pkg/commands/zrank.js +2 -2
- package/esm/pkg/commands/zrem.js +2 -2
- package/esm/pkg/commands/zremrangebylex.js +2 -2
- package/esm/pkg/commands/zremrangebyrank.js +2 -2
- package/esm/pkg/commands/zremrangebyscore.js +2 -2
- package/esm/pkg/commands/zrevrank.js +2 -2
- package/esm/pkg/commands/zscan.js +2 -2
- package/esm/pkg/commands/zscore.js +2 -2
- package/esm/pkg/commands/zunionstore.js +4 -4
- package/esm/pkg/pipeline.js +124 -117
- package/esm/pkg/redis.js +122 -116
- package/esm/platforms/cloudflare.js +3 -1
- package/esm/platforms/fastly.js +3 -1
- package/esm/platforms/nodejs.js +8 -2
- package/package.json +1 -1
- package/script/pkg/commands/append.js +2 -2
- package/script/pkg/commands/bitcount.js +2 -2
- package/script/pkg/commands/bitop.js +2 -2
- package/script/pkg/commands/bitpos.js +2 -2
- package/script/pkg/commands/command.js +13 -2
- package/script/pkg/commands/dbsize.js +2 -2
- package/script/pkg/commands/decr.js +2 -2
- package/script/pkg/commands/decrby.js +2 -2
- package/script/pkg/commands/del.js +2 -2
- package/script/pkg/commands/echo.js +2 -2
- package/script/pkg/commands/eval.js +2 -2
- package/script/pkg/commands/evalsha.js +2 -2
- package/script/pkg/commands/exists.js +2 -2
- package/script/pkg/commands/expire.js +2 -2
- package/script/pkg/commands/expireat.js +2 -2
- package/script/pkg/commands/flushall.js +3 -3
- package/script/pkg/commands/flushdb.js +2 -2
- package/script/pkg/commands/get.js +2 -2
- package/script/pkg/commands/getbit.js +2 -2
- package/script/pkg/commands/getrange.js +2 -2
- package/script/pkg/commands/getset.js +2 -2
- package/script/pkg/commands/hdel.js +2 -2
- package/script/pkg/commands/hexists.js +2 -2
- package/script/pkg/commands/hget.js +2 -2
- package/script/pkg/commands/hgetall.js +5 -2
- package/script/pkg/commands/hincrby.js +2 -2
- package/script/pkg/commands/hincrbyfloat.js +2 -2
- package/script/pkg/commands/hkeys.js +2 -2
- package/script/pkg/commands/hlen.js +2 -2
- package/script/pkg/commands/hmget.js +5 -2
- package/script/pkg/commands/hmset.js +2 -2
- package/script/pkg/commands/hscan.js +6 -6
- package/script/pkg/commands/hset.js +2 -2
- package/script/pkg/commands/hsetnx.js +2 -2
- package/script/pkg/commands/hstrlen.js +2 -2
- package/script/pkg/commands/hvals.js +2 -2
- package/script/pkg/commands/incr.js +2 -2
- package/script/pkg/commands/incrby.js +2 -2
- package/script/pkg/commands/incrbyfloat.js +2 -2
- package/script/pkg/commands/keys.js +2 -2
- package/script/pkg/commands/lindex.js +2 -2
- package/script/pkg/commands/linsert.js +2 -2
- package/script/pkg/commands/llen.js +2 -2
- package/script/pkg/commands/lpop.js +2 -2
- package/script/pkg/commands/lpush.js +2 -2
- package/script/pkg/commands/lpushx.js +2 -2
- package/script/pkg/commands/lrange.js +2 -2
- package/script/pkg/commands/lrem.js +2 -2
- package/script/pkg/commands/lset.js +2 -2
- package/script/pkg/commands/ltrim.js +2 -2
- package/script/pkg/commands/mget.js +2 -2
- package/script/pkg/commands/mset.js +2 -2
- package/script/pkg/commands/msetnx.js +2 -2
- package/script/pkg/commands/persist.js +2 -2
- package/script/pkg/commands/pexpire.js +2 -2
- package/script/pkg/commands/pexpireat.js +2 -2
- package/script/pkg/commands/ping.js +4 -4
- package/script/pkg/commands/psetex.js +2 -2
- package/script/pkg/commands/pttl.js +2 -2
- package/script/pkg/commands/publish.js +2 -2
- package/script/pkg/commands/randomkey.js +2 -2
- package/script/pkg/commands/rename.js +2 -2
- package/script/pkg/commands/renamenx.js +2 -2
- package/script/pkg/commands/rpop.js +2 -2
- package/script/pkg/commands/rpush.js +2 -2
- package/script/pkg/commands/rpushx.js +2 -2
- package/script/pkg/commands/sadd.js +2 -2
- package/script/pkg/commands/scan.js +2 -2
- package/script/pkg/commands/scard.js +2 -2
- package/script/pkg/commands/script_exists.js +3 -2
- package/script/pkg/commands/script_flush.js +2 -2
- package/script/pkg/commands/script_load.js +2 -2
- package/script/pkg/commands/sdiff.js +2 -2
- package/script/pkg/commands/sdiffstore.js +2 -2
- package/script/pkg/commands/set.js +6 -6
- package/script/pkg/commands/setbit.js +2 -2
- package/script/pkg/commands/setex.js +2 -2
- package/script/pkg/commands/setnx.js +2 -2
- package/script/pkg/commands/setrange.js +2 -2
- package/script/pkg/commands/sinter.js +2 -2
- package/script/pkg/commands/sinterstore.js +2 -2
- package/script/pkg/commands/sismember.js +2 -2
- package/script/pkg/commands/smembers.js +2 -2
- package/script/pkg/commands/smove.js +2 -2
- package/script/pkg/commands/spop.js +2 -2
- package/script/pkg/commands/srandmember.js +2 -2
- package/script/pkg/commands/srem.js +2 -2
- package/script/pkg/commands/sscan.js +2 -2
- package/script/pkg/commands/strlen.js +2 -2
- package/script/pkg/commands/sunion.js +2 -2
- package/script/pkg/commands/sunionstore.js +2 -2
- package/script/pkg/commands/time.js +2 -2
- package/script/pkg/commands/touch.js +2 -2
- package/script/pkg/commands/ttl.js +2 -2
- package/script/pkg/commands/type.js +2 -2
- package/script/pkg/commands/unlink.js +2 -2
- package/script/pkg/commands/zadd.js +7 -7
- package/script/pkg/commands/zcard.js +2 -2
- package/script/pkg/commands/zcount.js +2 -2
- package/script/pkg/commands/zincrby.js +5 -5
- package/script/pkg/commands/zinterstore.js +4 -4
- package/script/pkg/commands/zlexcount.js +2 -2
- package/script/pkg/commands/zpopmax.js +2 -2
- package/script/pkg/commands/zpopmin.js +2 -2
- package/script/pkg/commands/zrange.js +2 -2
- package/script/pkg/commands/zrank.js +2 -2
- package/script/pkg/commands/zrem.js +2 -2
- package/script/pkg/commands/zremrangebylex.js +2 -2
- package/script/pkg/commands/zremrangebyrank.js +2 -2
- package/script/pkg/commands/zremrangebyscore.js +2 -2
- package/script/pkg/commands/zrevrank.js +2 -2
- package/script/pkg/commands/zscan.js +2 -2
- package/script/pkg/commands/zscore.js +2 -2
- package/script/pkg/commands/zunionstore.js +4 -4
- package/script/pkg/pipeline.js +123 -116
- package/script/pkg/redis.js +121 -115
- package/script/platforms/cloudflare.js +3 -1
- package/script/platforms/fastly.js +3 -1
- package/script/platforms/nodejs.js +8 -2
- package/types/pkg/commands/append.d.ts +2 -2
- package/types/pkg/commands/bitcount.d.ts +3 -3
- package/types/pkg/commands/bitop.d.ts +8 -3
- package/types/pkg/commands/bitpos.d.ts +2 -2
- package/types/pkg/commands/command.d.ts +19 -5
- package/types/pkg/commands/dbsize.d.ts +2 -2
- package/types/pkg/commands/decr.d.ts +2 -2
- package/types/pkg/commands/decrby.d.ts +2 -2
- package/types/pkg/commands/del.d.ts +2 -3
- package/types/pkg/commands/echo.d.ts +2 -2
- package/types/pkg/commands/eval.d.ts +2 -2
- package/types/pkg/commands/evalsha.d.ts +2 -2
- package/types/pkg/commands/exists.d.ts +2 -3
- package/types/pkg/commands/expire.d.ts +3 -3
- package/types/pkg/commands/expireat.d.ts +3 -3
- package/types/pkg/commands/flushall.d.ts +3 -3
- package/types/pkg/commands/flushdb.d.ts +3 -3
- package/types/pkg/commands/get.d.ts +3 -3
- package/types/pkg/commands/getbit.d.ts +3 -3
- package/types/pkg/commands/getrange.d.ts +2 -2
- package/types/pkg/commands/getset.d.ts +3 -3
- package/types/pkg/commands/hdel.d.ts +3 -3
- package/types/pkg/commands/hexists.d.ts +2 -2
- package/types/pkg/commands/hget.d.ts +3 -3
- package/types/pkg/commands/hgetall.d.ts +3 -3
- package/types/pkg/commands/hincrby.d.ts +2 -2
- package/types/pkg/commands/hincrbyfloat.d.ts +2 -2
- package/types/pkg/commands/hkeys.d.ts +2 -2
- package/types/pkg/commands/hlen.d.ts +2 -2
- package/types/pkg/commands/hmget.d.ts +3 -3
- package/types/pkg/commands/hmset.d.ts +3 -3
- package/types/pkg/commands/hscan.d.ts +12 -2
- package/types/pkg/commands/hset.d.ts +3 -3
- package/types/pkg/commands/hsetnx.d.ts +3 -3
- package/types/pkg/commands/hstrlen.d.ts +2 -2
- package/types/pkg/commands/hvals.d.ts +3 -3
- package/types/pkg/commands/incr.d.ts +2 -2
- package/types/pkg/commands/incrby.d.ts +2 -2
- package/types/pkg/commands/incrbyfloat.d.ts +2 -2
- package/types/pkg/commands/keys.d.ts +2 -2
- package/types/pkg/commands/lindex.d.ts +3 -3
- package/types/pkg/commands/linsert.d.ts +7 -2
- package/types/pkg/commands/llen.d.ts +2 -2
- package/types/pkg/commands/lpop.d.ts +3 -3
- package/types/pkg/commands/lpush.d.ts +2 -3
- package/types/pkg/commands/lpushx.d.ts +2 -3
- package/types/pkg/commands/lrange.d.ts +3 -3
- package/types/pkg/commands/lrem.d.ts +2 -2
- package/types/pkg/commands/lset.d.ts +2 -2
- package/types/pkg/commands/ltrim.d.ts +2 -2
- package/types/pkg/commands/mget.d.ts +3 -3
- package/types/pkg/commands/mset.d.ts +3 -3
- package/types/pkg/commands/msetnx.d.ts +3 -3
- package/types/pkg/commands/persist.d.ts +3 -3
- package/types/pkg/commands/pexpire.d.ts +3 -3
- package/types/pkg/commands/pexpireat.d.ts +3 -3
- package/types/pkg/commands/ping.d.ts +2 -2
- package/types/pkg/commands/psetex.d.ts +2 -2
- package/types/pkg/commands/pttl.d.ts +2 -2
- package/types/pkg/commands/publish.d.ts +2 -2
- package/types/pkg/commands/randomkey.d.ts +2 -2
- package/types/pkg/commands/rename.d.ts +2 -2
- package/types/pkg/commands/renamenx.d.ts +3 -3
- package/types/pkg/commands/rpop.d.ts +3 -3
- package/types/pkg/commands/rpush.d.ts +2 -3
- package/types/pkg/commands/rpushx.d.ts +2 -3
- package/types/pkg/commands/sadd.d.ts +2 -3
- package/types/pkg/commands/scan.d.ts +9 -3
- package/types/pkg/commands/scard.d.ts +2 -2
- package/types/pkg/commands/script_exists.d.ts +3 -6
- package/types/pkg/commands/script_flush.d.ts +2 -2
- package/types/pkg/commands/script_load.d.ts +2 -2
- package/types/pkg/commands/sdiff.d.ts +3 -3
- package/types/pkg/commands/sdiffstore.d.ts +2 -3
- package/types/pkg/commands/set.d.ts +3 -3
- package/types/pkg/commands/setbit.d.ts +3 -3
- package/types/pkg/commands/setex.d.ts +2 -2
- package/types/pkg/commands/setnx.d.ts +2 -2
- package/types/pkg/commands/setrange.d.ts +2 -2
- package/types/pkg/commands/sinter.d.ts +3 -3
- package/types/pkg/commands/sinterstore.d.ts +3 -3
- package/types/pkg/commands/sismember.d.ts +3 -3
- package/types/pkg/commands/smembers.d.ts +3 -3
- package/types/pkg/commands/smove.d.ts +3 -3
- package/types/pkg/commands/spop.d.ts +3 -3
- package/types/pkg/commands/srandmember.d.ts +3 -3
- package/types/pkg/commands/srem.d.ts +2 -3
- package/types/pkg/commands/sscan.d.ts +12 -2
- package/types/pkg/commands/strlen.d.ts +2 -2
- package/types/pkg/commands/sunion.d.ts +3 -3
- package/types/pkg/commands/sunionstore.d.ts +2 -2
- package/types/pkg/commands/time.d.ts +2 -2
- package/types/pkg/commands/touch.d.ts +2 -3
- package/types/pkg/commands/ttl.d.ts +2 -2
- package/types/pkg/commands/type.d.ts +2 -2
- package/types/pkg/commands/unlink.d.ts +2 -2
- package/types/pkg/commands/zadd.d.ts +11 -3
- package/types/pkg/commands/zcard.d.ts +2 -2
- package/types/pkg/commands/zcount.d.ts +2 -2
- package/types/pkg/commands/zincrby.d.ts +3 -3
- package/types/pkg/commands/zinterstore.d.ts +13 -3
- package/types/pkg/commands/zlexcount.d.ts +2 -2
- package/types/pkg/commands/zpopmax.d.ts +3 -3
- package/types/pkg/commands/zpopmin.d.ts +3 -3
- package/types/pkg/commands/zrange.d.ts +19 -9
- package/types/pkg/commands/zrank.d.ts +2 -2
- package/types/pkg/commands/zrem.d.ts +2 -3
- package/types/pkg/commands/zremrangebylex.d.ts +2 -2
- package/types/pkg/commands/zremrangebyrank.d.ts +2 -2
- package/types/pkg/commands/zremrangebyscore.d.ts +2 -2
- package/types/pkg/commands/zrevrank.d.ts +2 -2
- package/types/pkg/commands/zscan.d.ts +12 -2
- package/types/pkg/commands/zscore.d.ts +3 -3
- package/types/pkg/commands/zunionstore.d.ts +13 -3
- package/types/pkg/pipeline.d.ts +20 -23
- package/types/pkg/redis.d.ts +30 -23
- package/types/pkg/types.d.ts +1 -2
- package/types/platforms/cloudflare.d.ts +1 -1
- package/types/platforms/fastly.d.ts +1 -1
- package/types/platforms/nodejs.d.ts +1 -19
package/script/pkg/redis.js
CHANGED
|
@@ -18,13 +18,19 @@ class Redis {
|
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
constructor(client) {
|
|
21
|
+
constructor(client, opts) {
|
|
22
22
|
Object.defineProperty(this, "client", {
|
|
23
23
|
enumerable: true,
|
|
24
24
|
configurable: true,
|
|
25
25
|
writable: true,
|
|
26
26
|
value: void 0
|
|
27
27
|
});
|
|
28
|
+
Object.defineProperty(this, "opts", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: void 0
|
|
33
|
+
});
|
|
28
34
|
/**
|
|
29
35
|
* Create a new pipeline that allows you to send requests in bulk.
|
|
30
36
|
*
|
|
@@ -34,7 +40,7 @@ class Redis {
|
|
|
34
40
|
enumerable: true,
|
|
35
41
|
configurable: true,
|
|
36
42
|
writable: true,
|
|
37
|
-
value: () => new pipeline_js_1.Pipeline(this.client)
|
|
43
|
+
value: () => new pipeline_js_1.Pipeline(this.client, this.opts)
|
|
38
44
|
});
|
|
39
45
|
/**
|
|
40
46
|
* @see https://redis.io/commands/append
|
|
@@ -43,7 +49,7 @@ class Redis {
|
|
|
43
49
|
enumerable: true,
|
|
44
50
|
configurable: true,
|
|
45
51
|
writable: true,
|
|
46
|
-
value: (...args) => new mod_js_1.AppendCommand(
|
|
52
|
+
value: (...args) => new mod_js_1.AppendCommand(args, this.opts).exec(this.client)
|
|
47
53
|
});
|
|
48
54
|
/**
|
|
49
55
|
* @see https://redis.io/commands/bitcount
|
|
@@ -52,7 +58,7 @@ class Redis {
|
|
|
52
58
|
enumerable: true,
|
|
53
59
|
configurable: true,
|
|
54
60
|
writable: true,
|
|
55
|
-
value: (...args) => new mod_js_1.BitCountCommand(
|
|
61
|
+
value: (...args) => new mod_js_1.BitCountCommand(args, this.opts).exec(this.client)
|
|
56
62
|
});
|
|
57
63
|
/**
|
|
58
64
|
* @see https://redis.io/commands/bitop
|
|
@@ -61,7 +67,7 @@ class Redis {
|
|
|
61
67
|
enumerable: true,
|
|
62
68
|
configurable: true,
|
|
63
69
|
writable: true,
|
|
64
|
-
value: (op, destinationKey, sourceKey, ...sourceKeys) => new mod_js_1.BitOpCommand(op, destinationKey, sourceKey, ...sourceKeys).exec(this.client)
|
|
70
|
+
value: (op, destinationKey, sourceKey, ...sourceKeys) => new mod_js_1.BitOpCommand([op, destinationKey, sourceKey, ...sourceKeys], this.opts).exec(this.client)
|
|
65
71
|
});
|
|
66
72
|
/**
|
|
67
73
|
* @see https://redis.io/commands/bitpos
|
|
@@ -70,7 +76,7 @@ class Redis {
|
|
|
70
76
|
enumerable: true,
|
|
71
77
|
configurable: true,
|
|
72
78
|
writable: true,
|
|
73
|
-
value: (...args) => new mod_js_1.BitPosCommand(
|
|
79
|
+
value: (...args) => new mod_js_1.BitPosCommand(args, this.opts).exec(this.client)
|
|
74
80
|
});
|
|
75
81
|
/**
|
|
76
82
|
* @see https://redis.io/commands/dbsize
|
|
@@ -79,7 +85,7 @@ class Redis {
|
|
|
79
85
|
enumerable: true,
|
|
80
86
|
configurable: true,
|
|
81
87
|
writable: true,
|
|
82
|
-
value: () => new mod_js_1.DBSizeCommand().exec(this.client)
|
|
88
|
+
value: () => new mod_js_1.DBSizeCommand(this.opts).exec(this.client)
|
|
83
89
|
});
|
|
84
90
|
/**
|
|
85
91
|
* @see https://redis.io/commands/decr
|
|
@@ -88,7 +94,7 @@ class Redis {
|
|
|
88
94
|
enumerable: true,
|
|
89
95
|
configurable: true,
|
|
90
96
|
writable: true,
|
|
91
|
-
value: (...args) => new mod_js_1.DecrCommand(
|
|
97
|
+
value: (...args) => new mod_js_1.DecrCommand(args, this.opts).exec(this.client)
|
|
92
98
|
});
|
|
93
99
|
/**
|
|
94
100
|
* @see https://redis.io/commands/decrby
|
|
@@ -97,7 +103,7 @@ class Redis {
|
|
|
97
103
|
enumerable: true,
|
|
98
104
|
configurable: true,
|
|
99
105
|
writable: true,
|
|
100
|
-
value: (...args) => new mod_js_1.DecrByCommand(
|
|
106
|
+
value: (...args) => new mod_js_1.DecrByCommand(args, this.opts).exec(this.client)
|
|
101
107
|
});
|
|
102
108
|
/**
|
|
103
109
|
* @see https://redis.io/commands/del
|
|
@@ -106,7 +112,7 @@ class Redis {
|
|
|
106
112
|
enumerable: true,
|
|
107
113
|
configurable: true,
|
|
108
114
|
writable: true,
|
|
109
|
-
value: (...args) => new mod_js_1.DelCommand(
|
|
115
|
+
value: (...args) => new mod_js_1.DelCommand(args, this.opts).exec(this.client)
|
|
110
116
|
});
|
|
111
117
|
/**
|
|
112
118
|
* @see https://redis.io/commands/echo
|
|
@@ -115,7 +121,7 @@ class Redis {
|
|
|
115
121
|
enumerable: true,
|
|
116
122
|
configurable: true,
|
|
117
123
|
writable: true,
|
|
118
|
-
value: (...args) => new mod_js_1.EchoCommand(
|
|
124
|
+
value: (...args) => new mod_js_1.EchoCommand(args, this.opts).exec(this.client)
|
|
119
125
|
});
|
|
120
126
|
/**
|
|
121
127
|
* @see https://redis.io/commands/eval
|
|
@@ -124,7 +130,7 @@ class Redis {
|
|
|
124
130
|
enumerable: true,
|
|
125
131
|
configurable: true,
|
|
126
132
|
writable: true,
|
|
127
|
-
value: (...args) => new mod_js_1.EvalCommand(
|
|
133
|
+
value: (...args) => new mod_js_1.EvalCommand(args, this.opts).exec(this.client)
|
|
128
134
|
});
|
|
129
135
|
/**
|
|
130
136
|
* @see https://redis.io/commands/evalsha
|
|
@@ -133,7 +139,7 @@ class Redis {
|
|
|
133
139
|
enumerable: true,
|
|
134
140
|
configurable: true,
|
|
135
141
|
writable: true,
|
|
136
|
-
value: (...args) => new mod_js_1.EvalshaCommand(
|
|
142
|
+
value: (...args) => new mod_js_1.EvalshaCommand(args, this.opts).exec(this.client)
|
|
137
143
|
});
|
|
138
144
|
/**
|
|
139
145
|
* @see https://redis.io/commands/exists
|
|
@@ -142,7 +148,7 @@ class Redis {
|
|
|
142
148
|
enumerable: true,
|
|
143
149
|
configurable: true,
|
|
144
150
|
writable: true,
|
|
145
|
-
value: (...args) => new mod_js_1.ExistsCommand(
|
|
151
|
+
value: (...args) => new mod_js_1.ExistsCommand(args, this.opts).exec(this.client)
|
|
146
152
|
});
|
|
147
153
|
/**
|
|
148
154
|
* @see https://redis.io/commands/expire
|
|
@@ -151,7 +157,7 @@ class Redis {
|
|
|
151
157
|
enumerable: true,
|
|
152
158
|
configurable: true,
|
|
153
159
|
writable: true,
|
|
154
|
-
value: (...args) => new mod_js_1.ExpireCommand(
|
|
160
|
+
value: (...args) => new mod_js_1.ExpireCommand(args, this.opts).exec(this.client)
|
|
155
161
|
});
|
|
156
162
|
/**
|
|
157
163
|
* @see https://redis.io/commands/expireat
|
|
@@ -160,7 +166,7 @@ class Redis {
|
|
|
160
166
|
enumerable: true,
|
|
161
167
|
configurable: true,
|
|
162
168
|
writable: true,
|
|
163
|
-
value: (...args) => new mod_js_1.ExpireAtCommand(
|
|
169
|
+
value: (...args) => new mod_js_1.ExpireAtCommand(args, this.opts).exec(this.client)
|
|
164
170
|
});
|
|
165
171
|
/**
|
|
166
172
|
* @see https://redis.io/commands/flushall
|
|
@@ -169,7 +175,7 @@ class Redis {
|
|
|
169
175
|
enumerable: true,
|
|
170
176
|
configurable: true,
|
|
171
177
|
writable: true,
|
|
172
|
-
value: (
|
|
178
|
+
value: (args) => new mod_js_1.FlushAllCommand(args, this.opts).exec(this.client)
|
|
173
179
|
});
|
|
174
180
|
/**
|
|
175
181
|
* @see https://redis.io/commands/flushdb
|
|
@@ -178,7 +184,7 @@ class Redis {
|
|
|
178
184
|
enumerable: true,
|
|
179
185
|
configurable: true,
|
|
180
186
|
writable: true,
|
|
181
|
-
value: (...args) => new mod_js_1.FlushDBCommand(
|
|
187
|
+
value: (...args) => new mod_js_1.FlushDBCommand(args, this.opts).exec(this.client)
|
|
182
188
|
});
|
|
183
189
|
/**
|
|
184
190
|
* @see https://redis.io/commands/get
|
|
@@ -187,7 +193,7 @@ class Redis {
|
|
|
187
193
|
enumerable: true,
|
|
188
194
|
configurable: true,
|
|
189
195
|
writable: true,
|
|
190
|
-
value: (...args) => new mod_js_1.GetCommand(
|
|
196
|
+
value: (...args) => new mod_js_1.GetCommand(args, this.opts).exec(this.client)
|
|
191
197
|
});
|
|
192
198
|
/**
|
|
193
199
|
* @see https://redis.io/commands/getbit
|
|
@@ -196,7 +202,7 @@ class Redis {
|
|
|
196
202
|
enumerable: true,
|
|
197
203
|
configurable: true,
|
|
198
204
|
writable: true,
|
|
199
|
-
value: (...args) => new mod_js_1.GetBitCommand(
|
|
205
|
+
value: (...args) => new mod_js_1.GetBitCommand(args, this.opts).exec(this.client)
|
|
200
206
|
});
|
|
201
207
|
/**
|
|
202
208
|
* @see https://redis.io/commands/getrange
|
|
@@ -205,7 +211,7 @@ class Redis {
|
|
|
205
211
|
enumerable: true,
|
|
206
212
|
configurable: true,
|
|
207
213
|
writable: true,
|
|
208
|
-
value: (...args) => new mod_js_1.GetRangeCommand(
|
|
214
|
+
value: (...args) => new mod_js_1.GetRangeCommand(args, this.opts).exec(this.client)
|
|
209
215
|
});
|
|
210
216
|
/**
|
|
211
217
|
* @see https://redis.io/commands/getset
|
|
@@ -214,7 +220,7 @@ class Redis {
|
|
|
214
220
|
enumerable: true,
|
|
215
221
|
configurable: true,
|
|
216
222
|
writable: true,
|
|
217
|
-
value: (key, value) => new mod_js_1.GetSetCommand(key, value).exec(this.client)
|
|
223
|
+
value: (key, value) => new mod_js_1.GetSetCommand([key, value], this.opts).exec(this.client)
|
|
218
224
|
});
|
|
219
225
|
/**
|
|
220
226
|
* @see https://redis.io/commands/hdel
|
|
@@ -223,7 +229,7 @@ class Redis {
|
|
|
223
229
|
enumerable: true,
|
|
224
230
|
configurable: true,
|
|
225
231
|
writable: true,
|
|
226
|
-
value: (...args) => new mod_js_1.HDelCommand(
|
|
232
|
+
value: (...args) => new mod_js_1.HDelCommand(args, this.opts).exec(this.client)
|
|
227
233
|
});
|
|
228
234
|
/**
|
|
229
235
|
* @see https://redis.io/commands/hexists
|
|
@@ -232,7 +238,7 @@ class Redis {
|
|
|
232
238
|
enumerable: true,
|
|
233
239
|
configurable: true,
|
|
234
240
|
writable: true,
|
|
235
|
-
value: (...args) => new mod_js_1.HExistsCommand(
|
|
241
|
+
value: (...args) => new mod_js_1.HExistsCommand(args, this.opts).exec(this.client)
|
|
236
242
|
});
|
|
237
243
|
/**
|
|
238
244
|
* @see https://redis.io/commands/hget
|
|
@@ -241,7 +247,7 @@ class Redis {
|
|
|
241
247
|
enumerable: true,
|
|
242
248
|
configurable: true,
|
|
243
249
|
writable: true,
|
|
244
|
-
value: (...args) => new mod_js_1.HGetCommand(
|
|
250
|
+
value: (...args) => new mod_js_1.HGetCommand(args, this.opts).exec(this.client)
|
|
245
251
|
});
|
|
246
252
|
/**
|
|
247
253
|
* @see https://redis.io/commands/hgetall
|
|
@@ -250,7 +256,7 @@ class Redis {
|
|
|
250
256
|
enumerable: true,
|
|
251
257
|
configurable: true,
|
|
252
258
|
writable: true,
|
|
253
|
-
value: (...args) => new mod_js_1.HGetAllCommand(
|
|
259
|
+
value: (...args) => new mod_js_1.HGetAllCommand(args, this.opts).exec(this.client)
|
|
254
260
|
});
|
|
255
261
|
/**
|
|
256
262
|
* @see https://redis.io/commands/hincrby
|
|
@@ -259,7 +265,7 @@ class Redis {
|
|
|
259
265
|
enumerable: true,
|
|
260
266
|
configurable: true,
|
|
261
267
|
writable: true,
|
|
262
|
-
value: (...args) => new mod_js_1.HIncrByCommand(
|
|
268
|
+
value: (...args) => new mod_js_1.HIncrByCommand(args, this.opts).exec(this.client)
|
|
263
269
|
});
|
|
264
270
|
/**
|
|
265
271
|
* @see https://redis.io/commands/hincrbyfloat
|
|
@@ -268,7 +274,7 @@ class Redis {
|
|
|
268
274
|
enumerable: true,
|
|
269
275
|
configurable: true,
|
|
270
276
|
writable: true,
|
|
271
|
-
value: (...args) => new mod_js_1.HIncrByFloatCommand(
|
|
277
|
+
value: (...args) => new mod_js_1.HIncrByFloatCommand(args, this.opts).exec(this.client)
|
|
272
278
|
});
|
|
273
279
|
/**
|
|
274
280
|
* @see https://redis.io/commands/hkeys
|
|
@@ -277,7 +283,7 @@ class Redis {
|
|
|
277
283
|
enumerable: true,
|
|
278
284
|
configurable: true,
|
|
279
285
|
writable: true,
|
|
280
|
-
value: (...args) => new mod_js_1.HKeysCommand(
|
|
286
|
+
value: (...args) => new mod_js_1.HKeysCommand(args, this.opts).exec(this.client)
|
|
281
287
|
});
|
|
282
288
|
/**
|
|
283
289
|
* @see https://redis.io/commands/hlen
|
|
@@ -286,7 +292,7 @@ class Redis {
|
|
|
286
292
|
enumerable: true,
|
|
287
293
|
configurable: true,
|
|
288
294
|
writable: true,
|
|
289
|
-
value: (...args) => new mod_js_1.HLenCommand(
|
|
295
|
+
value: (...args) => new mod_js_1.HLenCommand(args, this.opts).exec(this.client)
|
|
290
296
|
});
|
|
291
297
|
/**
|
|
292
298
|
* @see https://redis.io/commands/hmget
|
|
@@ -295,7 +301,7 @@ class Redis {
|
|
|
295
301
|
enumerable: true,
|
|
296
302
|
configurable: true,
|
|
297
303
|
writable: true,
|
|
298
|
-
value: (...args) => new mod_js_1.HMGetCommand(
|
|
304
|
+
value: (...args) => new mod_js_1.HMGetCommand(args, this.opts).exec(this.client)
|
|
299
305
|
});
|
|
300
306
|
/**
|
|
301
307
|
* @see https://redis.io/commands/hmset
|
|
@@ -304,7 +310,7 @@ class Redis {
|
|
|
304
310
|
enumerable: true,
|
|
305
311
|
configurable: true,
|
|
306
312
|
writable: true,
|
|
307
|
-
value: (key, kv) => new mod_js_1.HMSetCommand(key, kv).exec(this.client)
|
|
313
|
+
value: (key, kv) => new mod_js_1.HMSetCommand([key, kv], this.opts).exec(this.client)
|
|
308
314
|
});
|
|
309
315
|
/**
|
|
310
316
|
* @see https://redis.io/commands/hscan
|
|
@@ -313,7 +319,7 @@ class Redis {
|
|
|
313
319
|
enumerable: true,
|
|
314
320
|
configurable: true,
|
|
315
321
|
writable: true,
|
|
316
|
-
value: (...args) => new mod_js_1.HScanCommand(
|
|
322
|
+
value: (...args) => new mod_js_1.HScanCommand(args, this.opts).exec(this.client)
|
|
317
323
|
});
|
|
318
324
|
/**
|
|
319
325
|
* @see https://redis.io/commands/hset
|
|
@@ -322,7 +328,7 @@ class Redis {
|
|
|
322
328
|
enumerable: true,
|
|
323
329
|
configurable: true,
|
|
324
330
|
writable: true,
|
|
325
|
-
value: (key, kv) => new mod_js_1.HSetCommand(key, kv).exec(this.client)
|
|
331
|
+
value: (key, kv) => new mod_js_1.HSetCommand([key, kv], this.opts).exec(this.client)
|
|
326
332
|
});
|
|
327
333
|
/**
|
|
328
334
|
* @see https://redis.io/commands/hsetnx
|
|
@@ -331,7 +337,7 @@ class Redis {
|
|
|
331
337
|
enumerable: true,
|
|
332
338
|
configurable: true,
|
|
333
339
|
writable: true,
|
|
334
|
-
value: (key, field, value) => new mod_js_1.HSetNXCommand(key, field, value).exec(this.client)
|
|
340
|
+
value: (key, field, value) => new mod_js_1.HSetNXCommand([key, field, value], this.opts).exec(this.client)
|
|
335
341
|
});
|
|
336
342
|
/**
|
|
337
343
|
* @see https://redis.io/commands/hstrlen
|
|
@@ -340,7 +346,7 @@ class Redis {
|
|
|
340
346
|
enumerable: true,
|
|
341
347
|
configurable: true,
|
|
342
348
|
writable: true,
|
|
343
|
-
value: (...args) => new mod_js_1.HStrLenCommand(
|
|
349
|
+
value: (...args) => new mod_js_1.HStrLenCommand(args, this.opts).exec(this.client)
|
|
344
350
|
});
|
|
345
351
|
/**
|
|
346
352
|
* @see https://redis.io/commands/hvals
|
|
@@ -349,7 +355,7 @@ class Redis {
|
|
|
349
355
|
enumerable: true,
|
|
350
356
|
configurable: true,
|
|
351
357
|
writable: true,
|
|
352
|
-
value: (...args) => new mod_js_1.HValsCommand(
|
|
358
|
+
value: (...args) => new mod_js_1.HValsCommand(args, this.opts).exec(this.client)
|
|
353
359
|
});
|
|
354
360
|
/**
|
|
355
361
|
* @see https://redis.io/commands/incr
|
|
@@ -358,7 +364,7 @@ class Redis {
|
|
|
358
364
|
enumerable: true,
|
|
359
365
|
configurable: true,
|
|
360
366
|
writable: true,
|
|
361
|
-
value: (...args) => new mod_js_1.IncrCommand(
|
|
367
|
+
value: (...args) => new mod_js_1.IncrCommand(args, this.opts).exec(this.client)
|
|
362
368
|
});
|
|
363
369
|
/**
|
|
364
370
|
* @see https://redis.io/commands/incrby
|
|
@@ -367,7 +373,7 @@ class Redis {
|
|
|
367
373
|
enumerable: true,
|
|
368
374
|
configurable: true,
|
|
369
375
|
writable: true,
|
|
370
|
-
value: (...args) => new mod_js_1.IncrByCommand(
|
|
376
|
+
value: (...args) => new mod_js_1.IncrByCommand(args, this.opts).exec(this.client)
|
|
371
377
|
});
|
|
372
378
|
/**
|
|
373
379
|
* @see https://redis.io/commands/incrbyfloat
|
|
@@ -376,7 +382,7 @@ class Redis {
|
|
|
376
382
|
enumerable: true,
|
|
377
383
|
configurable: true,
|
|
378
384
|
writable: true,
|
|
379
|
-
value: (...args) => new mod_js_1.IncrByFloatCommand(
|
|
385
|
+
value: (...args) => new mod_js_1.IncrByFloatCommand(args, this.opts).exec(this.client)
|
|
380
386
|
});
|
|
381
387
|
/**
|
|
382
388
|
* @see https://redis.io/commands/keys
|
|
@@ -385,7 +391,7 @@ class Redis {
|
|
|
385
391
|
enumerable: true,
|
|
386
392
|
configurable: true,
|
|
387
393
|
writable: true,
|
|
388
|
-
value: (...args) => new mod_js_1.KeysCommand(
|
|
394
|
+
value: (...args) => new mod_js_1.KeysCommand(args, this.opts).exec(this.client)
|
|
389
395
|
});
|
|
390
396
|
/**
|
|
391
397
|
* @see https://redis.io/commands/lindex
|
|
@@ -394,7 +400,7 @@ class Redis {
|
|
|
394
400
|
enumerable: true,
|
|
395
401
|
configurable: true,
|
|
396
402
|
writable: true,
|
|
397
|
-
value: (...args) => new mod_js_1.LIndexCommand(
|
|
403
|
+
value: (...args) => new mod_js_1.LIndexCommand(args, this.opts).exec(this.client)
|
|
398
404
|
});
|
|
399
405
|
/**
|
|
400
406
|
* @see https://redis.io/commands/linsert
|
|
@@ -403,7 +409,7 @@ class Redis {
|
|
|
403
409
|
enumerable: true,
|
|
404
410
|
configurable: true,
|
|
405
411
|
writable: true,
|
|
406
|
-
value: (key, direction, pivot, value) => new mod_js_1.LInsertCommand(key, direction, pivot, value).exec(this.client)
|
|
412
|
+
value: (key, direction, pivot, value) => new mod_js_1.LInsertCommand([key, direction, pivot, value], this.opts).exec(this.client)
|
|
407
413
|
});
|
|
408
414
|
/**
|
|
409
415
|
* @see https://redis.io/commands/llen
|
|
@@ -412,7 +418,7 @@ class Redis {
|
|
|
412
418
|
enumerable: true,
|
|
413
419
|
configurable: true,
|
|
414
420
|
writable: true,
|
|
415
|
-
value: (...args) => new mod_js_1.LLenCommand(
|
|
421
|
+
value: (...args) => new mod_js_1.LLenCommand(args, this.opts).exec(this.client)
|
|
416
422
|
});
|
|
417
423
|
/**
|
|
418
424
|
* @see https://redis.io/commands/lpop
|
|
@@ -421,7 +427,7 @@ class Redis {
|
|
|
421
427
|
enumerable: true,
|
|
422
428
|
configurable: true,
|
|
423
429
|
writable: true,
|
|
424
|
-
value: (...args) => new mod_js_1.LPopCommand(
|
|
430
|
+
value: (...args) => new mod_js_1.LPopCommand(args, this.opts).exec(this.client)
|
|
425
431
|
});
|
|
426
432
|
/**
|
|
427
433
|
* @see https://redis.io/commands/lpush
|
|
@@ -430,7 +436,7 @@ class Redis {
|
|
|
430
436
|
enumerable: true,
|
|
431
437
|
configurable: true,
|
|
432
438
|
writable: true,
|
|
433
|
-
value: (key, ...elements) => new mod_js_1.LPushCommand(key, ...elements).exec(this.client)
|
|
439
|
+
value: (key, ...elements) => new mod_js_1.LPushCommand([key, ...elements], this.opts).exec(this.client)
|
|
434
440
|
});
|
|
435
441
|
/**
|
|
436
442
|
* @see https://redis.io/commands/lpushx
|
|
@@ -439,7 +445,7 @@ class Redis {
|
|
|
439
445
|
enumerable: true,
|
|
440
446
|
configurable: true,
|
|
441
447
|
writable: true,
|
|
442
|
-
value: (key, ...elements) => new mod_js_1.LPushXCommand(key, ...elements).exec(this.client)
|
|
448
|
+
value: (key, ...elements) => new mod_js_1.LPushXCommand([key, ...elements], this.opts).exec(this.client)
|
|
443
449
|
});
|
|
444
450
|
/**
|
|
445
451
|
* @see https://redis.io/commands/lrange
|
|
@@ -448,7 +454,7 @@ class Redis {
|
|
|
448
454
|
enumerable: true,
|
|
449
455
|
configurable: true,
|
|
450
456
|
writable: true,
|
|
451
|
-
value: (...args) => new mod_js_1.LRangeCommand(
|
|
457
|
+
value: (...args) => new mod_js_1.LRangeCommand(args, this.opts).exec(this.client)
|
|
452
458
|
});
|
|
453
459
|
/**
|
|
454
460
|
* @see https://redis.io/commands/lrem
|
|
@@ -457,7 +463,7 @@ class Redis {
|
|
|
457
463
|
enumerable: true,
|
|
458
464
|
configurable: true,
|
|
459
465
|
writable: true,
|
|
460
|
-
value: (key, count, value) => new mod_js_1.LRemCommand(key, count, value).exec(this.client)
|
|
466
|
+
value: (key, count, value) => new mod_js_1.LRemCommand([key, count, value], this.opts).exec(this.client)
|
|
461
467
|
});
|
|
462
468
|
/**
|
|
463
469
|
* @see https://redis.io/commands/lset
|
|
@@ -466,7 +472,7 @@ class Redis {
|
|
|
466
472
|
enumerable: true,
|
|
467
473
|
configurable: true,
|
|
468
474
|
writable: true,
|
|
469
|
-
value: (key,
|
|
475
|
+
value: (key, index, value) => new mod_js_1.LSetCommand([key, index, value], this.opts).exec(this.client)
|
|
470
476
|
});
|
|
471
477
|
/**
|
|
472
478
|
* @see https://redis.io/commands/ltrim
|
|
@@ -475,7 +481,7 @@ class Redis {
|
|
|
475
481
|
enumerable: true,
|
|
476
482
|
configurable: true,
|
|
477
483
|
writable: true,
|
|
478
|
-
value: (...args) => new mod_js_1.LTrimCommand(
|
|
484
|
+
value: (...args) => new mod_js_1.LTrimCommand(args, this.opts).exec(this.client)
|
|
479
485
|
});
|
|
480
486
|
/**
|
|
481
487
|
* @see https://redis.io/commands/mget
|
|
@@ -484,7 +490,7 @@ class Redis {
|
|
|
484
490
|
enumerable: true,
|
|
485
491
|
configurable: true,
|
|
486
492
|
writable: true,
|
|
487
|
-
value: (...args) => new mod_js_1.MGetCommand(
|
|
493
|
+
value: (...args) => new mod_js_1.MGetCommand(args, this.opts).exec(this.client)
|
|
488
494
|
});
|
|
489
495
|
/**
|
|
490
496
|
* @see https://redis.io/commands/mset
|
|
@@ -493,7 +499,7 @@ class Redis {
|
|
|
493
499
|
enumerable: true,
|
|
494
500
|
configurable: true,
|
|
495
501
|
writable: true,
|
|
496
|
-
value: (kv) => new mod_js_1.MSetCommand(kv).exec(this.client)
|
|
502
|
+
value: (kv) => new mod_js_1.MSetCommand([kv], this.opts).exec(this.client)
|
|
497
503
|
});
|
|
498
504
|
/**
|
|
499
505
|
* @see https://redis.io/commands/msetnx
|
|
@@ -502,7 +508,7 @@ class Redis {
|
|
|
502
508
|
enumerable: true,
|
|
503
509
|
configurable: true,
|
|
504
510
|
writable: true,
|
|
505
|
-
value: (kv) => new mod_js_1.MSetNXCommand(kv).exec(this.client)
|
|
511
|
+
value: (kv) => new mod_js_1.MSetNXCommand([kv], this.opts).exec(this.client)
|
|
506
512
|
});
|
|
507
513
|
/**
|
|
508
514
|
* @see https://redis.io/commands/persist
|
|
@@ -511,7 +517,7 @@ class Redis {
|
|
|
511
517
|
enumerable: true,
|
|
512
518
|
configurable: true,
|
|
513
519
|
writable: true,
|
|
514
|
-
value: (...args) => new mod_js_1.PersistCommand(
|
|
520
|
+
value: (...args) => new mod_js_1.PersistCommand(args, this.opts).exec(this.client)
|
|
515
521
|
});
|
|
516
522
|
/**
|
|
517
523
|
* @see https://redis.io/commands/pexpire
|
|
@@ -520,7 +526,7 @@ class Redis {
|
|
|
520
526
|
enumerable: true,
|
|
521
527
|
configurable: true,
|
|
522
528
|
writable: true,
|
|
523
|
-
value: (...args) => new mod_js_1.PExpireCommand(
|
|
529
|
+
value: (...args) => new mod_js_1.PExpireCommand(args, this.opts).exec(this.client)
|
|
524
530
|
});
|
|
525
531
|
/**
|
|
526
532
|
* @see https://redis.io/commands/pexpireat
|
|
@@ -529,7 +535,7 @@ class Redis {
|
|
|
529
535
|
enumerable: true,
|
|
530
536
|
configurable: true,
|
|
531
537
|
writable: true,
|
|
532
|
-
value: (...args) => new mod_js_1.PExpireAtCommand(
|
|
538
|
+
value: (...args) => new mod_js_1.PExpireAtCommand(args, this.opts).exec(this.client)
|
|
533
539
|
});
|
|
534
540
|
/**
|
|
535
541
|
* @see https://redis.io/commands/ping
|
|
@@ -538,7 +544,7 @@ class Redis {
|
|
|
538
544
|
enumerable: true,
|
|
539
545
|
configurable: true,
|
|
540
546
|
writable: true,
|
|
541
|
-
value: (
|
|
547
|
+
value: (args) => new mod_js_1.PingCommand(args, this.opts).exec(this.client)
|
|
542
548
|
});
|
|
543
549
|
/**
|
|
544
550
|
* @see https://redis.io/commands/psetex
|
|
@@ -547,7 +553,7 @@ class Redis {
|
|
|
547
553
|
enumerable: true,
|
|
548
554
|
configurable: true,
|
|
549
555
|
writable: true,
|
|
550
|
-
value: (key, ttl, value) => new mod_js_1.PSetEXCommand(key, ttl, value).exec(this.client)
|
|
556
|
+
value: (key, ttl, value) => new mod_js_1.PSetEXCommand([key, ttl, value], this.opts).exec(this.client)
|
|
551
557
|
});
|
|
552
558
|
/**
|
|
553
559
|
* @see https://redis.io/commands/pttl
|
|
@@ -556,7 +562,7 @@ class Redis {
|
|
|
556
562
|
enumerable: true,
|
|
557
563
|
configurable: true,
|
|
558
564
|
writable: true,
|
|
559
|
-
value: (...args) => new mod_js_1.PTtlCommand(
|
|
565
|
+
value: (...args) => new mod_js_1.PTtlCommand(args, this.opts).exec(this.client)
|
|
560
566
|
});
|
|
561
567
|
/**
|
|
562
568
|
* @see https://redis.io/commands/publish
|
|
@@ -565,7 +571,7 @@ class Redis {
|
|
|
565
571
|
enumerable: true,
|
|
566
572
|
configurable: true,
|
|
567
573
|
writable: true,
|
|
568
|
-
value: (...args) => new mod_js_1.PublishCommand(
|
|
574
|
+
value: (...args) => new mod_js_1.PublishCommand(args, this.opts).exec(this.client)
|
|
569
575
|
});
|
|
570
576
|
/**
|
|
571
577
|
* @see https://redis.io/commands/randomkey
|
|
@@ -583,7 +589,7 @@ class Redis {
|
|
|
583
589
|
enumerable: true,
|
|
584
590
|
configurable: true,
|
|
585
591
|
writable: true,
|
|
586
|
-
value: (...args) => new mod_js_1.RenameCommand(
|
|
592
|
+
value: (...args) => new mod_js_1.RenameCommand(args, this.opts).exec(this.client)
|
|
587
593
|
});
|
|
588
594
|
/**
|
|
589
595
|
* @see https://redis.io/commands/renamenx
|
|
@@ -592,7 +598,7 @@ class Redis {
|
|
|
592
598
|
enumerable: true,
|
|
593
599
|
configurable: true,
|
|
594
600
|
writable: true,
|
|
595
|
-
value: (...args) => new mod_js_1.RenameNXCommand(
|
|
601
|
+
value: (...args) => new mod_js_1.RenameNXCommand(args, this.opts).exec(this.client)
|
|
596
602
|
});
|
|
597
603
|
/**
|
|
598
604
|
* @see https://redis.io/commands/rpop
|
|
@@ -601,7 +607,7 @@ class Redis {
|
|
|
601
607
|
enumerable: true,
|
|
602
608
|
configurable: true,
|
|
603
609
|
writable: true,
|
|
604
|
-
value: (...args) => new mod_js_1.RPopCommand(
|
|
610
|
+
value: (...args) => new mod_js_1.RPopCommand(args, this.opts).exec(this.client)
|
|
605
611
|
});
|
|
606
612
|
/**
|
|
607
613
|
* @see https://redis.io/commands/rpush
|
|
@@ -610,7 +616,7 @@ class Redis {
|
|
|
610
616
|
enumerable: true,
|
|
611
617
|
configurable: true,
|
|
612
618
|
writable: true,
|
|
613
|
-
value: (key, ...elements) => new mod_js_1.RPushCommand(key, ...elements).exec(this.client)
|
|
619
|
+
value: (key, ...elements) => new mod_js_1.RPushCommand([key, ...elements], this.opts).exec(this.client)
|
|
614
620
|
});
|
|
615
621
|
/**
|
|
616
622
|
* @see https://redis.io/commands/rpushx
|
|
@@ -619,7 +625,7 @@ class Redis {
|
|
|
619
625
|
enumerable: true,
|
|
620
626
|
configurable: true,
|
|
621
627
|
writable: true,
|
|
622
|
-
value: (key, ...elements) => new mod_js_1.RPushXCommand(key, ...elements).exec(this.client)
|
|
628
|
+
value: (key, ...elements) => new mod_js_1.RPushXCommand([key, ...elements], this.opts).exec(this.client)
|
|
623
629
|
});
|
|
624
630
|
/**
|
|
625
631
|
* @see https://redis.io/commands/sadd
|
|
@@ -628,7 +634,7 @@ class Redis {
|
|
|
628
634
|
enumerable: true,
|
|
629
635
|
configurable: true,
|
|
630
636
|
writable: true,
|
|
631
|
-
value: (key, ...members) => new mod_js_1.SAddCommand(key, ...members).exec(this.client)
|
|
637
|
+
value: (key, ...members) => new mod_js_1.SAddCommand([key, ...members], this.opts).exec(this.client)
|
|
632
638
|
});
|
|
633
639
|
/**
|
|
634
640
|
* @see https://redis.io/commands/scan
|
|
@@ -637,7 +643,7 @@ class Redis {
|
|
|
637
643
|
enumerable: true,
|
|
638
644
|
configurable: true,
|
|
639
645
|
writable: true,
|
|
640
|
-
value: (...args) => new mod_js_1.ScanCommand(
|
|
646
|
+
value: (...args) => new mod_js_1.ScanCommand(args, this.opts).exec(this.client)
|
|
641
647
|
});
|
|
642
648
|
/**
|
|
643
649
|
* @see https://redis.io/commands/scard
|
|
@@ -646,7 +652,7 @@ class Redis {
|
|
|
646
652
|
enumerable: true,
|
|
647
653
|
configurable: true,
|
|
648
654
|
writable: true,
|
|
649
|
-
value: (...args) => new mod_js_1.SCardCommand(
|
|
655
|
+
value: (...args) => new mod_js_1.SCardCommand(args, this.opts).exec(this.client)
|
|
650
656
|
});
|
|
651
657
|
/**
|
|
652
658
|
* @see https://redis.io/commands/script-exists
|
|
@@ -655,7 +661,7 @@ class Redis {
|
|
|
655
661
|
enumerable: true,
|
|
656
662
|
configurable: true,
|
|
657
663
|
writable: true,
|
|
658
|
-
value: (...args) => new mod_js_1.ScriptExistsCommand(
|
|
664
|
+
value: (...args) => new mod_js_1.ScriptExistsCommand(args, this.opts).exec(this.client)
|
|
659
665
|
});
|
|
660
666
|
/**
|
|
661
667
|
* @see https://redis.io/commands/script-flush
|
|
@@ -664,7 +670,7 @@ class Redis {
|
|
|
664
670
|
enumerable: true,
|
|
665
671
|
configurable: true,
|
|
666
672
|
writable: true,
|
|
667
|
-
value: (...args) => new mod_js_1.ScriptFlushCommand(
|
|
673
|
+
value: (...args) => new mod_js_1.ScriptFlushCommand(args, this.opts).exec(this.client)
|
|
668
674
|
});
|
|
669
675
|
/**
|
|
670
676
|
* @see https://redis.io/commands/script-load
|
|
@@ -673,7 +679,7 @@ class Redis {
|
|
|
673
679
|
enumerable: true,
|
|
674
680
|
configurable: true,
|
|
675
681
|
writable: true,
|
|
676
|
-
value: (...args) => new mod_js_1.ScriptLoadCommand(
|
|
682
|
+
value: (...args) => new mod_js_1.ScriptLoadCommand(args, this.opts).exec(this.client)
|
|
677
683
|
});
|
|
678
684
|
/**
|
|
679
685
|
* @see https://redis.io/commands/sdiff
|
|
@@ -682,7 +688,7 @@ class Redis {
|
|
|
682
688
|
enumerable: true,
|
|
683
689
|
configurable: true,
|
|
684
690
|
writable: true,
|
|
685
|
-
value: (...args) => new mod_js_1.SDiffCommand(
|
|
691
|
+
value: (...args) => new mod_js_1.SDiffCommand(args, this.opts).exec(this.client)
|
|
686
692
|
});
|
|
687
693
|
/**
|
|
688
694
|
* @see https://redis.io/commands/sdiffstore
|
|
@@ -691,7 +697,7 @@ class Redis {
|
|
|
691
697
|
enumerable: true,
|
|
692
698
|
configurable: true,
|
|
693
699
|
writable: true,
|
|
694
|
-
value: (...args) => new mod_js_1.SDiffStoreCommand(
|
|
700
|
+
value: (...args) => new mod_js_1.SDiffStoreCommand(args, this.opts).exec(this.client)
|
|
695
701
|
});
|
|
696
702
|
/**
|
|
697
703
|
* @see https://redis.io/commands/set
|
|
@@ -700,7 +706,7 @@ class Redis {
|
|
|
700
706
|
enumerable: true,
|
|
701
707
|
configurable: true,
|
|
702
708
|
writable: true,
|
|
703
|
-
value: (key, value, opts) => new mod_js_1.SetCommand(key, value, opts).exec(this.client)
|
|
709
|
+
value: (key, value, opts) => new mod_js_1.SetCommand([key, value, opts], this.opts).exec(this.client)
|
|
704
710
|
});
|
|
705
711
|
/**
|
|
706
712
|
* @see https://redis.io/commands/setbit
|
|
@@ -709,7 +715,7 @@ class Redis {
|
|
|
709
715
|
enumerable: true,
|
|
710
716
|
configurable: true,
|
|
711
717
|
writable: true,
|
|
712
|
-
value: (...args) => new mod_js_1.SetBitCommand(
|
|
718
|
+
value: (...args) => new mod_js_1.SetBitCommand(args, this.opts).exec(this.client)
|
|
713
719
|
});
|
|
714
720
|
/**
|
|
715
721
|
* @see https://redis.io/commands/setex
|
|
@@ -718,7 +724,7 @@ class Redis {
|
|
|
718
724
|
enumerable: true,
|
|
719
725
|
configurable: true,
|
|
720
726
|
writable: true,
|
|
721
|
-
value: (key, ttl, value) => new mod_js_1.SetExCommand(key, ttl, value).exec(this.client)
|
|
727
|
+
value: (key, ttl, value) => new mod_js_1.SetExCommand([key, ttl, value], this.opts).exec(this.client)
|
|
722
728
|
});
|
|
723
729
|
/**
|
|
724
730
|
* @see https://redis.io/commands/setnx
|
|
@@ -727,7 +733,7 @@ class Redis {
|
|
|
727
733
|
enumerable: true,
|
|
728
734
|
configurable: true,
|
|
729
735
|
writable: true,
|
|
730
|
-
value: (key, value) => new mod_js_1.SetNxCommand(key, value).exec(this.client)
|
|
736
|
+
value: (key, value) => new mod_js_1.SetNxCommand([key, value], this.opts).exec(this.client)
|
|
731
737
|
});
|
|
732
738
|
/**
|
|
733
739
|
* @see https://redis.io/commands/setrange
|
|
@@ -736,7 +742,7 @@ class Redis {
|
|
|
736
742
|
enumerable: true,
|
|
737
743
|
configurable: true,
|
|
738
744
|
writable: true,
|
|
739
|
-
value: (...args) => new mod_js_1.SetRangeCommand(
|
|
745
|
+
value: (...args) => new mod_js_1.SetRangeCommand(args, this.opts).exec(this.client)
|
|
740
746
|
});
|
|
741
747
|
/**
|
|
742
748
|
* @see https://redis.io/commands/sinter
|
|
@@ -745,7 +751,7 @@ class Redis {
|
|
|
745
751
|
enumerable: true,
|
|
746
752
|
configurable: true,
|
|
747
753
|
writable: true,
|
|
748
|
-
value: (...args) => new mod_js_1.SInterCommand(
|
|
754
|
+
value: (...args) => new mod_js_1.SInterCommand(args, this.opts).exec(this.client)
|
|
749
755
|
});
|
|
750
756
|
/**
|
|
751
757
|
* @see https://redis.io/commands/sinterstore
|
|
@@ -754,7 +760,7 @@ class Redis {
|
|
|
754
760
|
enumerable: true,
|
|
755
761
|
configurable: true,
|
|
756
762
|
writable: true,
|
|
757
|
-
value: (...args) => new mod_js_1.SInterStoreCommand(
|
|
763
|
+
value: (...args) => new mod_js_1.SInterStoreCommand(args, this.opts).exec(this.client)
|
|
758
764
|
});
|
|
759
765
|
/**
|
|
760
766
|
* @see https://redis.io/commands/sismember
|
|
@@ -763,7 +769,7 @@ class Redis {
|
|
|
763
769
|
enumerable: true,
|
|
764
770
|
configurable: true,
|
|
765
771
|
writable: true,
|
|
766
|
-
value: (key, member) => new mod_js_1.SIsMemberCommand(key, member).exec(this.client)
|
|
772
|
+
value: (key, member) => new mod_js_1.SIsMemberCommand([key, member], this.opts).exec(this.client)
|
|
767
773
|
});
|
|
768
774
|
/**
|
|
769
775
|
* @see https://redis.io/commands/smembers
|
|
@@ -772,7 +778,7 @@ class Redis {
|
|
|
772
778
|
enumerable: true,
|
|
773
779
|
configurable: true,
|
|
774
780
|
writable: true,
|
|
775
|
-
value: (...args) => new mod_js_1.SMembersCommand(
|
|
781
|
+
value: (...args) => new mod_js_1.SMembersCommand(args, this.opts).exec(this.client)
|
|
776
782
|
});
|
|
777
783
|
/**
|
|
778
784
|
* @see https://redis.io/commands/smove
|
|
@@ -781,7 +787,7 @@ class Redis {
|
|
|
781
787
|
enumerable: true,
|
|
782
788
|
configurable: true,
|
|
783
789
|
writable: true,
|
|
784
|
-
value: (source, destination, member) => new mod_js_1.SMoveCommand(source, destination, member).exec(this.client)
|
|
790
|
+
value: (source, destination, member) => new mod_js_1.SMoveCommand([source, destination, member], this.opts).exec(this.client)
|
|
785
791
|
});
|
|
786
792
|
/**
|
|
787
793
|
* @see https://redis.io/commands/spop
|
|
@@ -790,7 +796,7 @@ class Redis {
|
|
|
790
796
|
enumerable: true,
|
|
791
797
|
configurable: true,
|
|
792
798
|
writable: true,
|
|
793
|
-
value: (...args) => new mod_js_1.SPopCommand(
|
|
799
|
+
value: (...args) => new mod_js_1.SPopCommand(args, this.opts).exec(this.client)
|
|
794
800
|
});
|
|
795
801
|
/**
|
|
796
802
|
* @see https://redis.io/commands/srandmember
|
|
@@ -799,7 +805,7 @@ class Redis {
|
|
|
799
805
|
enumerable: true,
|
|
800
806
|
configurable: true,
|
|
801
807
|
writable: true,
|
|
802
|
-
value: (...args) => new mod_js_1.SRandMemberCommand(
|
|
808
|
+
value: (...args) => new mod_js_1.SRandMemberCommand(args, this.opts).exec(this.client)
|
|
803
809
|
});
|
|
804
810
|
/**
|
|
805
811
|
* @see https://redis.io/commands/srem
|
|
@@ -808,7 +814,7 @@ class Redis {
|
|
|
808
814
|
enumerable: true,
|
|
809
815
|
configurable: true,
|
|
810
816
|
writable: true,
|
|
811
|
-
value: (key, ...members) => new mod_js_1.SRemCommand(key, ...members).exec(this.client)
|
|
817
|
+
value: (key, ...members) => new mod_js_1.SRemCommand([key, ...members], this.opts).exec(this.client)
|
|
812
818
|
});
|
|
813
819
|
/**
|
|
814
820
|
* @see https://redis.io/commands/sscan
|
|
@@ -817,7 +823,7 @@ class Redis {
|
|
|
817
823
|
enumerable: true,
|
|
818
824
|
configurable: true,
|
|
819
825
|
writable: true,
|
|
820
|
-
value: (...args) => new mod_js_1.SScanCommand(
|
|
826
|
+
value: (...args) => new mod_js_1.SScanCommand(args, this.opts).exec(this.client)
|
|
821
827
|
});
|
|
822
828
|
/**
|
|
823
829
|
* @see https://redis.io/commands/strlen
|
|
@@ -826,7 +832,7 @@ class Redis {
|
|
|
826
832
|
enumerable: true,
|
|
827
833
|
configurable: true,
|
|
828
834
|
writable: true,
|
|
829
|
-
value: (...args) => new mod_js_1.StrLenCommand(
|
|
835
|
+
value: (...args) => new mod_js_1.StrLenCommand(args, this.opts).exec(this.client)
|
|
830
836
|
});
|
|
831
837
|
/**
|
|
832
838
|
* @see https://redis.io/commands/sunion
|
|
@@ -835,7 +841,7 @@ class Redis {
|
|
|
835
841
|
enumerable: true,
|
|
836
842
|
configurable: true,
|
|
837
843
|
writable: true,
|
|
838
|
-
value: (...args) => new mod_js_1.SUnionCommand(
|
|
844
|
+
value: (...args) => new mod_js_1.SUnionCommand(args, this.opts).exec(this.client)
|
|
839
845
|
});
|
|
840
846
|
/**
|
|
841
847
|
* @see https://redis.io/commands/sunionstore
|
|
@@ -844,7 +850,7 @@ class Redis {
|
|
|
844
850
|
enumerable: true,
|
|
845
851
|
configurable: true,
|
|
846
852
|
writable: true,
|
|
847
|
-
value: (...args) => new mod_js_1.SUnionStoreCommand(
|
|
853
|
+
value: (...args) => new mod_js_1.SUnionStoreCommand(args, this.opts).exec(this.client)
|
|
848
854
|
});
|
|
849
855
|
/**
|
|
850
856
|
* @see https://redis.io/commands/time
|
|
@@ -862,7 +868,7 @@ class Redis {
|
|
|
862
868
|
enumerable: true,
|
|
863
869
|
configurable: true,
|
|
864
870
|
writable: true,
|
|
865
|
-
value: (...args) => new mod_js_1.TouchCommand(
|
|
871
|
+
value: (...args) => new mod_js_1.TouchCommand(args, this.opts).exec(this.client)
|
|
866
872
|
});
|
|
867
873
|
/**
|
|
868
874
|
* @see https://redis.io/commands/ttl
|
|
@@ -871,7 +877,7 @@ class Redis {
|
|
|
871
877
|
enumerable: true,
|
|
872
878
|
configurable: true,
|
|
873
879
|
writable: true,
|
|
874
|
-
value: (...args) => new mod_js_1.TtlCommand(
|
|
880
|
+
value: (...args) => new mod_js_1.TtlCommand(args, this.opts).exec(this.client)
|
|
875
881
|
});
|
|
876
882
|
/**
|
|
877
883
|
* @see https://redis.io/commands/type
|
|
@@ -880,7 +886,7 @@ class Redis {
|
|
|
880
886
|
enumerable: true,
|
|
881
887
|
configurable: true,
|
|
882
888
|
writable: true,
|
|
883
|
-
value: (...args) => new mod_js_1.TypeCommand(
|
|
889
|
+
value: (...args) => new mod_js_1.TypeCommand(args, this.opts).exec(this.client)
|
|
884
890
|
});
|
|
885
891
|
/**
|
|
886
892
|
* @see https://redis.io/commands/unlink
|
|
@@ -889,7 +895,7 @@ class Redis {
|
|
|
889
895
|
enumerable: true,
|
|
890
896
|
configurable: true,
|
|
891
897
|
writable: true,
|
|
892
|
-
value: (...args) => new mod_js_1.UnlinkCommand(
|
|
898
|
+
value: (...args) => new mod_js_1.UnlinkCommand(args, this.opts).exec(this.client)
|
|
893
899
|
});
|
|
894
900
|
/**
|
|
895
901
|
* @see https://redis.io/commands/zadd
|
|
@@ -900,9 +906,9 @@ class Redis {
|
|
|
900
906
|
writable: true,
|
|
901
907
|
value: (...args) => {
|
|
902
908
|
if ("score" in args[1]) {
|
|
903
|
-
return new mod_js_1.ZAddCommand(args[0], args[1], ...args.slice(2)).exec(this.client);
|
|
909
|
+
return new mod_js_1.ZAddCommand([args[0], args[1], ...args.slice(2)], this.opts).exec(this.client);
|
|
904
910
|
}
|
|
905
|
-
return new mod_js_1.ZAddCommand(args[0], args[1], ...args.slice(2)).exec(this.client);
|
|
911
|
+
return new mod_js_1.ZAddCommand([args[0], args[1], ...args.slice(2)], this.opts).exec(this.client);
|
|
906
912
|
}
|
|
907
913
|
});
|
|
908
914
|
/**
|
|
@@ -912,7 +918,7 @@ class Redis {
|
|
|
912
918
|
enumerable: true,
|
|
913
919
|
configurable: true,
|
|
914
920
|
writable: true,
|
|
915
|
-
value: (...args) => new mod_js_1.ZCardCommand(
|
|
921
|
+
value: (...args) => new mod_js_1.ZCardCommand(args, this.opts).exec(this.client)
|
|
916
922
|
});
|
|
917
923
|
/**
|
|
918
924
|
* @see https://redis.io/commands/zcount
|
|
@@ -921,7 +927,7 @@ class Redis {
|
|
|
921
927
|
enumerable: true,
|
|
922
928
|
configurable: true,
|
|
923
929
|
writable: true,
|
|
924
|
-
value: (...args) => new mod_js_1.ZCountCommand(
|
|
930
|
+
value: (...args) => new mod_js_1.ZCountCommand(args, this.opts).exec(this.client)
|
|
925
931
|
});
|
|
926
932
|
/**
|
|
927
933
|
* @see https://redis.io/commands/zincrby
|
|
@@ -930,7 +936,7 @@ class Redis {
|
|
|
930
936
|
enumerable: true,
|
|
931
937
|
configurable: true,
|
|
932
938
|
writable: true,
|
|
933
|
-
value: (key, increment, member) => new mod_js_1.
|
|
939
|
+
value: (key, increment, member) => new mod_js_1.ZIncrByCommand([key, increment, member], this.opts).exec(this.client)
|
|
934
940
|
});
|
|
935
941
|
/**
|
|
936
942
|
* @see https://redis.io/commands/zinterstore
|
|
@@ -939,7 +945,7 @@ class Redis {
|
|
|
939
945
|
enumerable: true,
|
|
940
946
|
configurable: true,
|
|
941
947
|
writable: true,
|
|
942
|
-
value: (...args) => new mod_js_1.ZInterStoreCommand(
|
|
948
|
+
value: (...args) => new mod_js_1.ZInterStoreCommand(args, this.opts).exec(this.client)
|
|
943
949
|
});
|
|
944
950
|
/**
|
|
945
951
|
* @see https://redis.io/commands/zlexcount
|
|
@@ -948,7 +954,7 @@ class Redis {
|
|
|
948
954
|
enumerable: true,
|
|
949
955
|
configurable: true,
|
|
950
956
|
writable: true,
|
|
951
|
-
value: (...args) => new mod_js_1.ZLexCountCommand(
|
|
957
|
+
value: (...args) => new mod_js_1.ZLexCountCommand(args, this.opts).exec(this.client)
|
|
952
958
|
});
|
|
953
959
|
/**
|
|
954
960
|
* @see https://redis.io/commands/zpopmax
|
|
@@ -957,7 +963,7 @@ class Redis {
|
|
|
957
963
|
enumerable: true,
|
|
958
964
|
configurable: true,
|
|
959
965
|
writable: true,
|
|
960
|
-
value: (...args) => new mod_js_1.ZPopMaxCommand(
|
|
966
|
+
value: (...args) => new mod_js_1.ZPopMaxCommand(args, this.opts).exec(this.client)
|
|
961
967
|
});
|
|
962
968
|
/**
|
|
963
969
|
* @see https://redis.io/commands/zpopmin
|
|
@@ -966,7 +972,7 @@ class Redis {
|
|
|
966
972
|
enumerable: true,
|
|
967
973
|
configurable: true,
|
|
968
974
|
writable: true,
|
|
969
|
-
value: (...args) => new mod_js_1.ZPopMinCommand(
|
|
975
|
+
value: (...args) => new mod_js_1.ZPopMinCommand(args, this.opts).exec(this.client)
|
|
970
976
|
});
|
|
971
977
|
/**
|
|
972
978
|
* @see https://redis.io/commands/zrange
|
|
@@ -975,8 +981,7 @@ class Redis {
|
|
|
975
981
|
enumerable: true,
|
|
976
982
|
configurable: true,
|
|
977
983
|
writable: true,
|
|
978
|
-
value: (...args) => new mod_js_1.ZRangeCommand(args
|
|
979
|
-
.exec(this.client)
|
|
984
|
+
value: (...args) => new mod_js_1.ZRangeCommand(args, this.opts).exec(this.client)
|
|
980
985
|
});
|
|
981
986
|
/**
|
|
982
987
|
* @see https://redis.io/commands/zrank
|
|
@@ -985,7 +990,7 @@ class Redis {
|
|
|
985
990
|
enumerable: true,
|
|
986
991
|
configurable: true,
|
|
987
992
|
writable: true,
|
|
988
|
-
value: (key, member) => new mod_js_1.ZRankCommand(key, member).exec(this.client)
|
|
993
|
+
value: (key, member) => new mod_js_1.ZRankCommand([key, member], this.opts).exec(this.client)
|
|
989
994
|
});
|
|
990
995
|
/**
|
|
991
996
|
* @see https://redis.io/commands/zrem
|
|
@@ -994,7 +999,7 @@ class Redis {
|
|
|
994
999
|
enumerable: true,
|
|
995
1000
|
configurable: true,
|
|
996
1001
|
writable: true,
|
|
997
|
-
value: (key, ...members) => new mod_js_1.ZRemCommand(key, ...members).exec(this.client)
|
|
1002
|
+
value: (key, ...members) => new mod_js_1.ZRemCommand([key, ...members], this.opts).exec(this.client)
|
|
998
1003
|
});
|
|
999
1004
|
/**
|
|
1000
1005
|
* @see https://redis.io/commands/zremrangebylex
|
|
@@ -1003,7 +1008,7 @@ class Redis {
|
|
|
1003
1008
|
enumerable: true,
|
|
1004
1009
|
configurable: true,
|
|
1005
1010
|
writable: true,
|
|
1006
|
-
value: (...args) => new mod_js_1.ZRemRangeByLexCommand(
|
|
1011
|
+
value: (...args) => new mod_js_1.ZRemRangeByLexCommand(args, this.opts).exec(this.client)
|
|
1007
1012
|
});
|
|
1008
1013
|
/**
|
|
1009
1014
|
* @see https://redis.io/commands/zremrangebyrank
|
|
@@ -1012,7 +1017,7 @@ class Redis {
|
|
|
1012
1017
|
enumerable: true,
|
|
1013
1018
|
configurable: true,
|
|
1014
1019
|
writable: true,
|
|
1015
|
-
value: (...args) => new mod_js_1.ZRemRangeByRankCommand(
|
|
1020
|
+
value: (...args) => new mod_js_1.ZRemRangeByRankCommand(args, this.opts).exec(this.client)
|
|
1016
1021
|
});
|
|
1017
1022
|
/**
|
|
1018
1023
|
* @see https://redis.io/commands/zremrangebyscore
|
|
@@ -1021,7 +1026,7 @@ class Redis {
|
|
|
1021
1026
|
enumerable: true,
|
|
1022
1027
|
configurable: true,
|
|
1023
1028
|
writable: true,
|
|
1024
|
-
value: (...args) => new mod_js_1.ZRemRangeByScoreCommand(
|
|
1029
|
+
value: (...args) => new mod_js_1.ZRemRangeByScoreCommand(args, this.opts).exec(this.client)
|
|
1025
1030
|
});
|
|
1026
1031
|
/**
|
|
1027
1032
|
* @see https://redis.io/commands/zrevrank
|
|
@@ -1030,7 +1035,7 @@ class Redis {
|
|
|
1030
1035
|
enumerable: true,
|
|
1031
1036
|
configurable: true,
|
|
1032
1037
|
writable: true,
|
|
1033
|
-
value: (key, member) => new mod_js_1.ZRevRankCommand(key, member).exec(this.client)
|
|
1038
|
+
value: (key, member) => new mod_js_1.ZRevRankCommand([key, member], this.opts).exec(this.client)
|
|
1034
1039
|
});
|
|
1035
1040
|
/**
|
|
1036
1041
|
* @see https://redis.io/commands/zscan
|
|
@@ -1039,7 +1044,7 @@ class Redis {
|
|
|
1039
1044
|
enumerable: true,
|
|
1040
1045
|
configurable: true,
|
|
1041
1046
|
writable: true,
|
|
1042
|
-
value: (...args) => new mod_js_1.ZScanCommand(
|
|
1047
|
+
value: (...args) => new mod_js_1.ZScanCommand(args, this.opts).exec(this.client)
|
|
1043
1048
|
});
|
|
1044
1049
|
/**
|
|
1045
1050
|
* @see https://redis.io/commands/zscore
|
|
@@ -1048,7 +1053,7 @@ class Redis {
|
|
|
1048
1053
|
enumerable: true,
|
|
1049
1054
|
configurable: true,
|
|
1050
1055
|
writable: true,
|
|
1051
|
-
value: (key, member) => new mod_js_1.ZScoreCommand(key, member).exec(this.client)
|
|
1056
|
+
value: (key, member) => new mod_js_1.ZScoreCommand([key, member], this.opts).exec(this.client)
|
|
1052
1057
|
});
|
|
1053
1058
|
/**
|
|
1054
1059
|
* @see https://redis.io/commands/zunionstore
|
|
@@ -1057,9 +1062,10 @@ class Redis {
|
|
|
1057
1062
|
enumerable: true,
|
|
1058
1063
|
configurable: true,
|
|
1059
1064
|
writable: true,
|
|
1060
|
-
value: (...args) => new mod_js_1.ZUnionStoreCommand(
|
|
1065
|
+
value: (...args) => new mod_js_1.ZUnionStoreCommand(args, this.opts).exec(this.client)
|
|
1061
1066
|
});
|
|
1062
1067
|
this.client = client;
|
|
1068
|
+
this.opts = opts;
|
|
1063
1069
|
}
|
|
1064
1070
|
}
|
|
1065
1071
|
exports.Redis = Redis;
|