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