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