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