@upstash/redis 1.3.2-alpha.2 → 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 +1 -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 -1
- package/package.json +1 -2
- 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 -1
- 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
|
@@ -20,7 +20,9 @@ export class Redis extends core.Redis {
|
|
|
20
20
|
baseUrl: config.url,
|
|
21
21
|
headers: { authorization: `Bearer ${config.token}` },
|
|
22
22
|
});
|
|
23
|
-
super(client
|
|
23
|
+
super(client, {
|
|
24
|
+
automaticDeserialization: config.automaticDeserialization,
|
|
25
|
+
});
|
|
24
26
|
}
|
|
25
27
|
/*
|
|
26
28
|
* Create a new Upstash Redis instance from environment variables on cloudflare.
|
package/esm/platforms/fastly.js
CHANGED
|
@@ -22,7 +22,9 @@ export class Redis extends core.Redis {
|
|
|
22
22
|
headers: { authorization: `Bearer ${config.token}` },
|
|
23
23
|
backend: config.backend,
|
|
24
24
|
});
|
|
25
|
-
super(client
|
|
25
|
+
super(client, {
|
|
26
|
+
automaticDeserialization: config.automaticDeserialization,
|
|
27
|
+
});
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
function defaultRequester(config) {
|
package/esm/platforms/nodejs.js
CHANGED
|
@@ -16,7 +16,9 @@ export class Redis extends core.Redis {
|
|
|
16
16
|
headers: { authorization: `Bearer ${configOrRequester.token}` },
|
|
17
17
|
agent: configOrRequester.agent,
|
|
18
18
|
});
|
|
19
|
-
super(client
|
|
19
|
+
super(client, {
|
|
20
|
+
automaticDeserialization: configOrRequester.automaticDeserialization,
|
|
21
|
+
});
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Create a new Upstash Redis instance from environment variables.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"main": "./script/platforms/nodejs.js",
|
|
4
4
|
"types": "./types/platforms/nodejs.d.ts",
|
|
5
5
|
"name": "@upstash/redis",
|
|
6
|
-
"version": "v1.3.
|
|
6
|
+
"version": "v1.3.3-alpha.0",
|
|
7
7
|
"description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"https": false
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"encoding": "latest",
|
|
32
31
|
"isomorphic-fetch": "^3.0.0"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/append
|
|
7
7
|
*/
|
|
8
8
|
class AppendCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["append",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["append", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.AppendCommand = AppendCommand;
|
|
@@ -6,7 +6,7 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/bitcount
|
|
7
7
|
*/
|
|
8
8
|
class BitCountCommand extends command_js_1.Command {
|
|
9
|
-
constructor(key, start, end) {
|
|
9
|
+
constructor([key, start, end], opts) {
|
|
10
10
|
const command = ["bitcount", key];
|
|
11
11
|
if (typeof start === "number") {
|
|
12
12
|
command.push(start);
|
|
@@ -14,7 +14,7 @@ class BitCountCommand extends command_js_1.Command {
|
|
|
14
14
|
if (typeof end === "number") {
|
|
15
15
|
command.push(end);
|
|
16
16
|
}
|
|
17
|
-
super(command);
|
|
17
|
+
super(command, opts);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
exports.BitCountCommand = BitCountCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/bitop
|
|
7
7
|
*/
|
|
8
8
|
class BitOpCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["bitop",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["bitop", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.BitOpCommand = BitOpCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/bitpos
|
|
7
7
|
*/
|
|
8
8
|
class BitPosCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["bitpos",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["bitpos", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.BitPosCommand = BitPosCommand;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Command = void 0;
|
|
4
4
|
const error_js_1 = require("../error.js");
|
|
5
5
|
const util_js_1 = require("../util.js");
|
|
6
|
+
const defaultSerializer = (c) => typeof c === "string" ? c : JSON.stringify(c);
|
|
6
7
|
/**
|
|
7
8
|
* Command offers default (de)serialization and the exec method to all commands.
|
|
8
9
|
*
|
|
@@ -22,14 +23,24 @@ class Command {
|
|
|
22
23
|
writable: true,
|
|
23
24
|
value: void 0
|
|
24
25
|
});
|
|
26
|
+
Object.defineProperty(this, "serialize", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
configurable: true,
|
|
29
|
+
writable: true,
|
|
30
|
+
value: void 0
|
|
31
|
+
});
|
|
25
32
|
Object.defineProperty(this, "deserialize", {
|
|
26
33
|
enumerable: true,
|
|
27
34
|
configurable: true,
|
|
28
35
|
writable: true,
|
|
29
36
|
value: void 0
|
|
30
37
|
});
|
|
31
|
-
this.
|
|
32
|
-
this.deserialize = opts?.
|
|
38
|
+
this.serialize = defaultSerializer;
|
|
39
|
+
this.deserialize = typeof opts?.automaticDeserialization === "undefined" ||
|
|
40
|
+
opts.automaticDeserialization
|
|
41
|
+
? opts?.deserialize ?? util_js_1.parseResponse
|
|
42
|
+
: (x) => x;
|
|
43
|
+
this.command = command.map(this.serialize);
|
|
33
44
|
}
|
|
34
45
|
/**
|
|
35
46
|
* Execute the command using a client.
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/dbsize
|
|
7
7
|
*/
|
|
8
8
|
class DBSizeCommand extends command_js_1.Command {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(["dbsize"]);
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super(["dbsize"], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.DBSizeCommand = DBSizeCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/decr
|
|
7
7
|
*/
|
|
8
8
|
class DecrCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["decr",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["decr", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.DecrCommand = DecrCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/decrby
|
|
7
7
|
*/
|
|
8
8
|
class DecrByCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["decrby",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["decrby", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.DecrByCommand = DecrByCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/del
|
|
7
7
|
*/
|
|
8
8
|
class DelCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["del", ...
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["del", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.DelCommand = DelCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/echo
|
|
7
7
|
*/
|
|
8
8
|
class EchoCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["echo",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["echo", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.EchoCommand = EchoCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/eval
|
|
7
7
|
*/
|
|
8
8
|
class EvalCommand extends command_js_1.Command {
|
|
9
|
-
constructor(script, keys, args) {
|
|
10
|
-
super(["eval", script, keys.length, ...keys, ...(args ?? [])]);
|
|
9
|
+
constructor([script, keys, args], opts) {
|
|
10
|
+
super(["eval", script, keys.length, ...keys, ...(args ?? [])], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.EvalCommand = EvalCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/evalsha
|
|
7
7
|
*/
|
|
8
8
|
class EvalshaCommand extends command_js_1.Command {
|
|
9
|
-
constructor(sha, keys, args) {
|
|
10
|
-
super(["evalsha", sha, keys.length, ...keys, ...(args ?? [])]);
|
|
9
|
+
constructor([sha, keys, args], opts) {
|
|
10
|
+
super(["evalsha", sha, keys.length, ...keys, ...(args ?? [])], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.EvalshaCommand = EvalshaCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/exists
|
|
7
7
|
*/
|
|
8
8
|
class ExistsCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["exists", ...
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["exists", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.ExistsCommand = ExistsCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/expire
|
|
7
7
|
*/
|
|
8
8
|
class ExpireCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["expire",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["expire", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.ExpireCommand = ExpireCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/expireat
|
|
7
7
|
*/
|
|
8
8
|
class ExpireAtCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["expireat",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["expireat", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.ExpireAtCommand = ExpireAtCommand;
|
|
@@ -6,12 +6,12 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/flushall
|
|
7
7
|
*/
|
|
8
8
|
class FlushAllCommand extends command_js_1.Command {
|
|
9
|
-
constructor(opts) {
|
|
9
|
+
constructor(args, opts) {
|
|
10
10
|
const command = ["flushall"];
|
|
11
|
-
if (
|
|
11
|
+
if (args && args.length > 0 && args[0].async) {
|
|
12
12
|
command.push("async");
|
|
13
13
|
}
|
|
14
|
-
super(command);
|
|
14
|
+
super(command, opts);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FlushAllCommand = FlushAllCommand;
|
|
@@ -6,12 +6,12 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/flushdb
|
|
7
7
|
*/
|
|
8
8
|
class FlushDBCommand extends command_js_1.Command {
|
|
9
|
-
constructor(opts) {
|
|
9
|
+
constructor([opts], cmdOpts) {
|
|
10
10
|
const command = ["flushdb"];
|
|
11
11
|
if (opts?.async) {
|
|
12
12
|
command.push("async");
|
|
13
13
|
}
|
|
14
|
-
super(command);
|
|
14
|
+
super(command, cmdOpts);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FlushDBCommand = FlushDBCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/get
|
|
7
7
|
*/
|
|
8
8
|
class GetCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["get",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["get", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.GetCommand = GetCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/getbit
|
|
7
7
|
*/
|
|
8
8
|
class GetBitCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["getbit",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["getbit", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.GetBitCommand = GetBitCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/getrange
|
|
7
7
|
*/
|
|
8
8
|
class GetRangeCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["getrange",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["getrange", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.GetRangeCommand = GetRangeCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/getset
|
|
7
7
|
*/
|
|
8
8
|
class GetSetCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["getset",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["getset", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.GetSetCommand = GetSetCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hdel
|
|
7
7
|
*/
|
|
8
8
|
class HDelCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["hdel",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["hdel", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HDelCommand = HDelCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hexists
|
|
7
7
|
*/
|
|
8
8
|
class HExistsCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["hexists",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["hexists", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HExistsCommand = HExistsCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hget
|
|
7
7
|
*/
|
|
8
8
|
class HGetCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["hget",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["hget", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HGetCommand = HGetCommand;
|
|
@@ -27,8 +27,11 @@ function deserialize(result) {
|
|
|
27
27
|
* @see https://redis.io/commands/hgetall
|
|
28
28
|
*/
|
|
29
29
|
class HGetAllCommand extends command_js_1.Command {
|
|
30
|
-
constructor(
|
|
31
|
-
super(["hgetall",
|
|
30
|
+
constructor(cmd, opts) {
|
|
31
|
+
super(["hgetall", ...cmd], {
|
|
32
|
+
deserialize: (result) => deserialize(result),
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
exports.HGetAllCommand = HGetAllCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hincrby
|
|
7
7
|
*/
|
|
8
8
|
class HIncrByCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["hincrby",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["hincrby", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HIncrByCommand = HIncrByCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hincrbyfloat
|
|
7
7
|
*/
|
|
8
8
|
class HIncrByFloatCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["hincrbyfloat",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["hincrbyfloat", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HIncrByFloatCommand = HIncrByFloatCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hkeys
|
|
7
7
|
*/
|
|
8
8
|
class HKeysCommand extends command_js_1.Command {
|
|
9
|
-
constructor(key) {
|
|
10
|
-
super(["hkeys", key]);
|
|
9
|
+
constructor([key], opts) {
|
|
10
|
+
super(["hkeys", key], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HKeysCommand = HKeysCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hlen
|
|
7
7
|
*/
|
|
8
8
|
class HLenCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["hlen",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["hlen", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HLenCommand = HLenCommand;
|
|
@@ -29,8 +29,11 @@ function deserialize(fields, result) {
|
|
|
29
29
|
* @see https://redis.io/commands/hmget
|
|
30
30
|
*/
|
|
31
31
|
class HMGetCommand extends command_js_1.Command {
|
|
32
|
-
constructor(key, ...fields) {
|
|
33
|
-
super(["hmget", key, ...fields], {
|
|
32
|
+
constructor([key, ...fields], opts) {
|
|
33
|
+
super(["hmget", key, ...fields], {
|
|
34
|
+
deserialize: (result) => deserialize(fields, result),
|
|
35
|
+
...opts,
|
|
36
|
+
});
|
|
34
37
|
}
|
|
35
38
|
}
|
|
36
39
|
exports.HMGetCommand = HMGetCommand;
|
|
@@ -6,12 +6,12 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hmset
|
|
7
7
|
*/
|
|
8
8
|
class HMSetCommand extends command_js_1.Command {
|
|
9
|
-
constructor(key, kv) {
|
|
9
|
+
constructor([key, kv], opts) {
|
|
10
10
|
super([
|
|
11
11
|
"hmset",
|
|
12
12
|
key,
|
|
13
13
|
...Object.entries(kv).flatMap(([field, value]) => [field, value]),
|
|
14
|
-
]);
|
|
14
|
+
], opts);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.HMSetCommand = HMSetCommand;
|
|
@@ -6,15 +6,15 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hscan
|
|
7
7
|
*/
|
|
8
8
|
class HScanCommand extends command_js_1.Command {
|
|
9
|
-
constructor(key, cursor, opts) {
|
|
9
|
+
constructor([key, cursor, cmdOpts], opts) {
|
|
10
10
|
const command = ["hscan", key, cursor];
|
|
11
|
-
if (
|
|
12
|
-
command.push("match",
|
|
11
|
+
if (cmdOpts?.match) {
|
|
12
|
+
command.push("match", cmdOpts.match);
|
|
13
13
|
}
|
|
14
|
-
if (typeof
|
|
15
|
-
command.push("count",
|
|
14
|
+
if (typeof cmdOpts?.count === "number") {
|
|
15
|
+
command.push("count", cmdOpts.count);
|
|
16
16
|
}
|
|
17
|
-
super(command);
|
|
17
|
+
super(command, opts);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
exports.HScanCommand = HScanCommand;
|
|
@@ -6,12 +6,12 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hset
|
|
7
7
|
*/
|
|
8
8
|
class HSetCommand extends command_js_1.Command {
|
|
9
|
-
constructor(key, kv) {
|
|
9
|
+
constructor([key, kv], opts) {
|
|
10
10
|
super([
|
|
11
11
|
"hset",
|
|
12
12
|
key,
|
|
13
13
|
...Object.entries(kv).flatMap(([field, value]) => [field, value]),
|
|
14
|
-
]);
|
|
14
|
+
], opts);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.HSetCommand = HSetCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hsetnx
|
|
7
7
|
*/
|
|
8
8
|
class HSetNXCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["hsetnx",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["hsetnx", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HSetNXCommand = HSetNXCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hstrlen
|
|
7
7
|
*/
|
|
8
8
|
class HStrLenCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["hstrlen",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["hstrlen", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HStrLenCommand = HStrLenCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/hvals
|
|
7
7
|
*/
|
|
8
8
|
class HValsCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["hvals",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["hvals", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.HValsCommand = HValsCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/incr
|
|
7
7
|
*/
|
|
8
8
|
class IncrCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["incr",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["incr", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.IncrCommand = IncrCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/incrby
|
|
7
7
|
*/
|
|
8
8
|
class IncrByCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["incrby",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["incrby", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.IncrByCommand = IncrByCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/incrbyfloat
|
|
7
7
|
*/
|
|
8
8
|
class IncrByFloatCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["incrbyfloat",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["incrbyfloat", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.IncrByFloatCommand = IncrByFloatCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/keys
|
|
7
7
|
*/
|
|
8
8
|
class KeysCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["keys",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["keys", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.KeysCommand = KeysCommand;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LIndexCommand = void 0;
|
|
4
4
|
const command_js_1 = require("./command.js");
|
|
5
5
|
class LIndexCommand extends command_js_1.Command {
|
|
6
|
-
constructor(
|
|
7
|
-
super(["lindex",
|
|
6
|
+
constructor(cmd, opts) {
|
|
7
|
+
super(["lindex", ...cmd], opts);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.LIndexCommand = LIndexCommand;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LInsertCommand = void 0;
|
|
4
4
|
const command_js_1 = require("./command.js");
|
|
5
5
|
class LInsertCommand extends command_js_1.Command {
|
|
6
|
-
constructor(
|
|
7
|
-
super(["linsert",
|
|
6
|
+
constructor(cmd, opts) {
|
|
7
|
+
super(["linsert", ...cmd], opts);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.LInsertCommand = LInsertCommand;
|
|
@@ -6,8 +6,8 @@ const command_js_1 = require("./command.js");
|
|
|
6
6
|
* @see https://redis.io/commands/llen
|
|
7
7
|
*/
|
|
8
8
|
class LLenCommand extends command_js_1.Command {
|
|
9
|
-
constructor(
|
|
10
|
-
super(["llen",
|
|
9
|
+
constructor(cmd, opts) {
|
|
10
|
+
super(["llen", ...cmd], opts);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.LLenCommand = LLenCommand;
|