@upstash/redis 1.40.0 → 1.41.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 +5 -0
- package/{chunk-RLVWMRRX.mjs → chunk-CGMWROAN.mjs} +557 -4
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +557 -4
- package/cloudflare.mjs +1 -1
- package/docs/advanced.mdx +83 -0
- package/docs/commands/array/arcount.mdx +28 -0
- package/docs/commands/array/ardel.mdx +30 -0
- package/docs/commands/array/ardelrange.mdx +32 -0
- package/docs/commands/array/arget.mdx +33 -0
- package/docs/commands/array/argetrange.mdx +38 -0
- package/docs/commands/array/argrep.mdx +69 -0
- package/docs/commands/array/arinfo.mdx +49 -0
- package/docs/commands/array/arinsert.mdx +32 -0
- package/docs/commands/array/arlastitems.mdx +40 -0
- package/docs/commands/array/arlen.mdx +28 -0
- package/docs/commands/array/armget.mdx +31 -0
- package/docs/commands/array/armset.mdx +31 -0
- package/docs/commands/array/arnext.mdx +25 -0
- package/docs/commands/array/arop.mdx +44 -0
- package/docs/commands/array/arring.mdx +36 -0
- package/docs/commands/array/arscan.mdx +42 -0
- package/docs/commands/array/arseek.mdx +34 -0
- package/docs/commands/array/arset.mdx +35 -0
- package/docs/commands/auth/echo.mdx +24 -0
- package/docs/commands/auth/ping.mdx +21 -0
- package/docs/commands/bitmap/bitcount.mdx +39 -0
- package/docs/commands/bitmap/bitop.mdx +142 -0
- package/docs/commands/bitmap/bitpos.mdx +39 -0
- package/docs/commands/bitmap/getbit.mdx +28 -0
- package/docs/commands/bitmap/setbit.mdx +31 -0
- package/docs/commands/connection/client_setinfo.mdx +91 -0
- package/docs/commands/functions/call.mdx +72 -0
- package/docs/commands/functions/call_ro.mdx +57 -0
- package/docs/commands/functions/delete.mdx +22 -0
- package/docs/commands/functions/flush.mdx +16 -0
- package/docs/commands/functions/list.mdx +72 -0
- package/docs/commands/functions/load.mdx +64 -0
- package/docs/commands/functions/stats.mdx +46 -0
- package/docs/commands/generic/del.mdx +29 -0
- package/docs/commands/generic/exists.mdx +26 -0
- package/docs/commands/generic/expire.mdx +29 -0
- package/docs/commands/generic/expireat.mdx +29 -0
- package/docs/commands/generic/keys.mdx +32 -0
- package/docs/commands/generic/persist.mdx +23 -0
- package/docs/commands/generic/pexpire.mdx +28 -0
- package/docs/commands/generic/pexpireat.mdx +29 -0
- package/docs/commands/generic/pttl.mdx +23 -0
- package/docs/commands/generic/randomkey.mdx +21 -0
- package/docs/commands/generic/rename.mdx +28 -0
- package/docs/commands/generic/renamenx.mdx +28 -0
- package/docs/commands/generic/scan.mdx +38 -0
- package/docs/commands/generic/touch.mdx +23 -0
- package/docs/commands/generic/ttl.mdx +23 -0
- package/docs/commands/generic/type.mdx +27 -0
- package/docs/commands/generic/unlink.mdx +29 -0
- package/docs/commands/hash/hdel.mdx +28 -0
- package/docs/commands/hash/hexists.mdx +30 -0
- package/docs/commands/hash/hexpire.mdx +49 -0
- package/docs/commands/hash/hexpireat.mdx +48 -0
- package/docs/commands/hash/hexpiretime.mdx +35 -0
- package/docs/commands/hash/hget.mdx +29 -0
- package/docs/commands/hash/hgetall.mdx +27 -0
- package/docs/commands/hash/hgetdel.mdx +67 -0
- package/docs/commands/hash/hgetex.mdx +123 -0
- package/docs/commands/hash/hincrby.mdx +34 -0
- package/docs/commands/hash/hincrbyfloat.mdx +34 -0
- package/docs/commands/hash/hkeys.mdx +28 -0
- package/docs/commands/hash/hlen.mdx +28 -0
- package/docs/commands/hash/hmget.mdx +33 -0
- package/docs/commands/hash/hpersist.mdx +37 -0
- package/docs/commands/hash/hpexpire.mdx +50 -0
- package/docs/commands/hash/hpexpireat.mdx +48 -0
- package/docs/commands/hash/hpexpiretime.mdx +35 -0
- package/docs/commands/hash/hpttl.mdx +35 -0
- package/docs/commands/hash/hrandfield.mdx +57 -0
- package/docs/commands/hash/hscan.mdx +65 -0
- package/docs/commands/hash/hset.mdx +32 -0
- package/docs/commands/hash/hsetex.mdx +186 -0
- package/docs/commands/hash/hsetnx.mdx +30 -0
- package/docs/commands/hash/hstrlen.mdx +28 -0
- package/docs/commands/hash/httl.mdx +35 -0
- package/docs/commands/hash/hvals.mdx +29 -0
- package/docs/commands/json/arrappend.mdx +35 -0
- package/docs/commands/json/arrindex.mdx +37 -0
- package/docs/commands/json/arrinsert.mdx +34 -0
- package/docs/commands/json/arrlen.mdx +26 -0
- package/docs/commands/json/arrpop.mdx +36 -0
- package/docs/commands/json/arrtrim.mdx +34 -0
- package/docs/commands/json/clear.mdx +30 -0
- package/docs/commands/json/del.mdx +26 -0
- package/docs/commands/json/forget.mdx +26 -0
- package/docs/commands/json/get.mdx +53 -0
- package/docs/commands/json/merge.mdx +32 -0
- package/docs/commands/json/mget.mdx +27 -0
- package/docs/commands/json/mset.mdx +26 -0
- package/docs/commands/json/numincrby.mdx +33 -0
- package/docs/commands/json/nummultby.mdx +33 -0
- package/docs/commands/json/objkeys.mdx +27 -0
- package/docs/commands/json/objlen.mdx +27 -0
- package/docs/commands/json/set.mdx +42 -0
- package/docs/commands/json/strappend.mdx +32 -0
- package/docs/commands/json/strlen.mdx +26 -0
- package/docs/commands/json/toggle.mdx +28 -0
- package/docs/commands/json/type.mdx +28 -0
- package/docs/commands/list/lindex.mdx +32 -0
- package/docs/commands/list/linsert.mdx +41 -0
- package/docs/commands/list/llen.mdx +26 -0
- package/docs/commands/list/lmove.mdx +34 -0
- package/docs/commands/list/lpop.mdx +37 -0
- package/docs/commands/list/lpos.mdx +56 -0
- package/docs/commands/list/lpush.mdx +32 -0
- package/docs/commands/list/lpushx.mdx +38 -0
- package/docs/commands/list/lrange.mdx +37 -0
- package/docs/commands/list/lrem.mdx +33 -0
- package/docs/commands/list/lset.mdx +34 -0
- package/docs/commands/list/ltrim.mdx +33 -0
- package/docs/commands/list/rpop.mdx +37 -0
- package/docs/commands/list/rpush.mdx +32 -0
- package/docs/commands/list/rpushx.mdx +38 -0
- package/docs/commands/overview.mdx +692 -0
- package/docs/commands/pubsub/psubscribe.mdx +36 -0
- package/docs/commands/pubsub/publish.mdx +27 -0
- package/docs/commands/pubsub/subscribe.mdx +28 -0
- package/docs/commands/scripts/eval.mdx +36 -0
- package/docs/commands/scripts/eval_ro.mdx +36 -0
- package/docs/commands/scripts/evalsha.mdx +36 -0
- package/docs/commands/scripts/evalsha_ro.mdx +36 -0
- package/docs/commands/scripts/script_exists.mdx +26 -0
- package/docs/commands/scripts/script_flush.mdx +28 -0
- package/docs/commands/scripts/script_load.mdx +28 -0
- package/docs/commands/server/dbsize.mdx +22 -0
- package/docs/commands/server/flushall.mdx +25 -0
- package/docs/commands/server/flushdb.mdx +25 -0
- package/docs/commands/set/sadd.mdx +32 -0
- package/docs/commands/set/scard.mdx +26 -0
- package/docs/commands/set/sdiff.mdx +27 -0
- package/docs/commands/set/sdiffstore.mdx +32 -0
- package/docs/commands/set/sinter.mdx +27 -0
- package/docs/commands/set/sinterstore.mdx +33 -0
- package/docs/commands/set/sismember.mdx +30 -0
- package/docs/commands/set/smembers.mdx +25 -0
- package/docs/commands/set/smismember.mdx +31 -0
- package/docs/commands/set/smove.mdx +34 -0
- package/docs/commands/set/spop.mdx +36 -0
- package/docs/commands/set/srandmember.mdx +36 -0
- package/docs/commands/set/srem.mdx +29 -0
- package/docs/commands/set/sscan.mdx +39 -0
- package/docs/commands/set/sunion.mdx +27 -0
- package/docs/commands/set/sunionstore.mdx +33 -0
- package/docs/commands/stream/xack.mdx +37 -0
- package/docs/commands/stream/xackdel.mdx +211 -0
- package/docs/commands/stream/xadd.mdx +137 -0
- package/docs/commands/stream/xautoclaim.mdx +80 -0
- package/docs/commands/stream/xclaim.mdx +84 -0
- package/docs/commands/stream/xdel.mdx +34 -0
- package/docs/commands/stream/xdelex.mdx +119 -0
- package/docs/commands/stream/xgroup.mdx +141 -0
- package/docs/commands/stream/xinfo.mdx +77 -0
- package/docs/commands/stream/xlen.mdx +22 -0
- package/docs/commands/stream/xpending.mdx +75 -0
- package/docs/commands/stream/xrange.mdx +59 -0
- package/docs/commands/stream/xread.mdx +65 -0
- package/docs/commands/stream/xreadgroup.mdx +87 -0
- package/docs/commands/stream/xrevrange.mdx +65 -0
- package/docs/commands/stream/xtrim.mdx +75 -0
- package/docs/commands/string/append.mdx +28 -0
- package/docs/commands/string/decr.mdx +27 -0
- package/docs/commands/string/decrby.mdx +30 -0
- package/docs/commands/string/get.mdx +34 -0
- package/docs/commands/string/getdel.mdx +29 -0
- package/docs/commands/string/getrange.mdx +34 -0
- package/docs/commands/string/getset.mdx +28 -0
- package/docs/commands/string/incr.mdx +27 -0
- package/docs/commands/string/incrby.mdx +30 -0
- package/docs/commands/string/incrbyfloat.mdx +30 -0
- package/docs/commands/string/mget.mdx +31 -0
- package/docs/commands/string/mset.mdx +32 -0
- package/docs/commands/string/msetnx.mdx +29 -0
- package/docs/commands/string/set.mdx +79 -0
- package/docs/commands/string/setrange.mdx +38 -0
- package/docs/commands/string/strlen.mdx +26 -0
- package/docs/commands/transaction.mdx +22 -0
- package/docs/commands/zset/zadd.mdx +102 -0
- package/docs/commands/zset/zcard.mdx +31 -0
- package/docs/commands/zset/zcount.mdx +47 -0
- package/docs/commands/zset/zdiffstore.mdx +33 -0
- package/docs/commands/zset/zincrby.mdx +37 -0
- package/docs/commands/zset/zinterstore.mdx +98 -0
- package/docs/commands/zset/zlexcount.mdx +43 -0
- package/docs/commands/zset/zmscore.mdx +34 -0
- package/docs/commands/zset/zpopmax.mdx +25 -0
- package/docs/commands/zset/zpopmin.mdx +25 -0
- package/docs/commands/zset/zrange.mdx +85 -0
- package/docs/commands/zset/zrank.mdx +29 -0
- package/docs/commands/zset/zrem.mdx +33 -0
- package/docs/commands/zset/zremrangebylex.mdx +32 -0
- package/docs/commands/zset/zremrangebyrank.mdx +32 -0
- package/docs/commands/zset/zremrangebyscore.mdx +32 -0
- package/docs/commands/zset/zrevrank.mdx +29 -0
- package/docs/commands/zset/zscan.mdx +58 -0
- package/docs/commands/zset/zscore.mdx +34 -0
- package/docs/commands/zset/zunionstore.mdx +98 -0
- package/docs/deployment.mdx +117 -0
- package/docs/developing.mdx +118 -0
- package/docs/getstarted.mdx +68 -0
- package/docs/overview.mdx +29 -0
- package/docs/pipelining/auto-pipeline.mdx +108 -0
- package/docs/pipelining/pipeline-transaction.mdx +65 -0
- package/docs/retries.mdx +24 -0
- package/docs/troubleshooting.mdx +80 -0
- package/{error-BNzLTXJG.d.mts → error-4e36-PC0.d.mts} +838 -8
- package/{error-BNzLTXJG.d.ts → error-4e36-PC0.d.ts} +838 -8
- package/fastly.d.mts +2 -2
- package/fastly.d.ts +2 -2
- package/fastly.js +557 -4
- package/fastly.mjs +1 -1
- package/nodejs.d.mts +34 -2
- package/nodejs.d.ts +34 -2
- package/nodejs.js +586 -4
- package/nodejs.mjs +30 -1
- package/package.json +16 -5
- package/src/pkg/auto-pipeline.ts +284 -0
- package/src/pkg/commands/append.ts +12 -0
- package/src/pkg/commands/arcount.ts +14 -0
- package/src/pkg/commands/ardel.ts +19 -0
- package/src/pkg/commands/ardelrange.ts +19 -0
- package/src/pkg/commands/arget.ts +17 -0
- package/src/pkg/commands/argetrange.ts +20 -0
- package/src/pkg/commands/argrep.ts +109 -0
- package/src/pkg/commands/arinfo.ts +88 -0
- package/src/pkg/commands/arinsert.ts +24 -0
- package/src/pkg/commands/arlastitems.ts +29 -0
- package/src/pkg/commands/arlen.ts +23 -0
- package/src/pkg/commands/armget.ts +18 -0
- package/src/pkg/commands/armset.ts +26 -0
- package/src/pkg/commands/arnext.ts +20 -0
- package/src/pkg/commands/arop.ts +48 -0
- package/src/pkg/commands/arring.ts +23 -0
- package/src/pkg/commands/arscan.ts +44 -0
- package/src/pkg/commands/arseek.ts +17 -0
- package/src/pkg/commands/arset.ts +20 -0
- package/src/pkg/commands/bitcount.ts +30 -0
- package/src/pkg/commands/bitfield.ts +50 -0
- package/src/pkg/commands/bitop.ts +35 -0
- package/src/pkg/commands/bitpos.ts +15 -0
- package/src/pkg/commands/client_setinfo.ts +17 -0
- package/src/pkg/commands/command.ts +142 -0
- package/src/pkg/commands/copy.ts +22 -0
- package/src/pkg/commands/dbsize.ts +12 -0
- package/src/pkg/commands/decr.ts +12 -0
- package/src/pkg/commands/decrby.ts +12 -0
- package/src/pkg/commands/del.ts +12 -0
- package/src/pkg/commands/echo.ts +12 -0
- package/src/pkg/commands/eval.ts +18 -0
- package/src/pkg/commands/evalRo.ts +18 -0
- package/src/pkg/commands/evalsha.ts +18 -0
- package/src/pkg/commands/evalshaRo.ts +18 -0
- package/src/pkg/commands/exec.ts +23 -0
- package/src/pkg/commands/exists.ts +12 -0
- package/src/pkg/commands/expire.ts +13 -0
- package/src/pkg/commands/expireat.ts +16 -0
- package/src/pkg/commands/fcall.ts +15 -0
- package/src/pkg/commands/fcall_ro.ts +18 -0
- package/src/pkg/commands/flushall.ts +15 -0
- package/src/pkg/commands/flushdb.ts +15 -0
- package/src/pkg/commands/function_delete.ts +12 -0
- package/src/pkg/commands/function_flush.ts +12 -0
- package/src/pkg/commands/function_list.ts +77 -0
- package/src/pkg/commands/function_load.ts +31 -0
- package/src/pkg/commands/function_stats.ts +42 -0
- package/src/pkg/commands/geo_add.ts +54 -0
- package/src/pkg/commands/geo_dist.ts +19 -0
- package/src/pkg/commands/geo_hash.ts +23 -0
- package/src/pkg/commands/geo_pos.ts +39 -0
- package/src/pkg/commands/geo_search.ts +140 -0
- package/src/pkg/commands/geo_search_store.ts +69 -0
- package/src/pkg/commands/get.ts +15 -0
- package/src/pkg/commands/getbit.ts +12 -0
- package/src/pkg/commands/getdel.ts +15 -0
- package/src/pkg/commands/getex.ts +36 -0
- package/src/pkg/commands/getrange.ts +15 -0
- package/src/pkg/commands/getset.ts +15 -0
- package/src/pkg/commands/hdel.ts +12 -0
- package/src/pkg/commands/hexists.ts +12 -0
- package/src/pkg/commands/hexpire.ts +30 -0
- package/src/pkg/commands/hexpireat.ts +30 -0
- package/src/pkg/commands/hexpiretime.ts +13 -0
- package/src/pkg/commands/hget.ts +18 -0
- package/src/pkg/commands/hgetall.ts +44 -0
- package/src/pkg/commands/hgetdel.ts +30 -0
- package/src/pkg/commands/hgetex.ts +56 -0
- package/src/pkg/commands/hincrby.ts +15 -0
- package/src/pkg/commands/hincrbyfloat.ts +15 -0
- package/src/pkg/commands/hkeys.ts +12 -0
- package/src/pkg/commands/hlen.ts +12 -0
- package/src/pkg/commands/hmget.ts +53 -0
- package/src/pkg/commands/hmset.ts +14 -0
- package/src/pkg/commands/hpersist.ts +13 -0
- package/src/pkg/commands/hpexpire.ts +30 -0
- package/src/pkg/commands/hpexpireat.ts +30 -0
- package/src/pkg/commands/hpexpiretime.ts +13 -0
- package/src/pkg/commands/hpttl.ts +13 -0
- package/src/pkg/commands/hrandfield.ts +52 -0
- package/src/pkg/commands/hscan.ts +31 -0
- package/src/pkg/commands/hset.ts +15 -0
- package/src/pkg/commands/hsetex.ts +59 -0
- package/src/pkg/commands/hsetnx.ts +15 -0
- package/src/pkg/commands/hstrlen.ts +12 -0
- package/src/pkg/commands/httl.ts +13 -0
- package/src/pkg/commands/hvals.ts +12 -0
- package/src/pkg/commands/incr.ts +12 -0
- package/src/pkg/commands/incrby.ts +12 -0
- package/src/pkg/commands/incrbyfloat.ts +12 -0
- package/src/pkg/commands/json_arrappend.ts +18 -0
- package/src/pkg/commands/json_arrindex.ts +15 -0
- package/src/pkg/commands/json_arrinsert.ts +18 -0
- package/src/pkg/commands/json_arrlen.ts +15 -0
- package/src/pkg/commands/json_arrpop.ts +15 -0
- package/src/pkg/commands/json_arrtrim.ts +19 -0
- package/src/pkg/commands/json_clear.ts +12 -0
- package/src/pkg/commands/json_del.ts +12 -0
- package/src/pkg/commands/json_forget.ts +12 -0
- package/src/pkg/commands/json_get.ts +45 -0
- package/src/pkg/commands/json_merge.ts +18 -0
- package/src/pkg/commands/json_mget.ts +12 -0
- package/src/pkg/commands/json_mset.ts +27 -0
- package/src/pkg/commands/json_numincrby.ts +15 -0
- package/src/pkg/commands/json_nummultby.ts +15 -0
- package/src/pkg/commands/json_objkeys.ts +15 -0
- package/src/pkg/commands/json_objlen.ts +15 -0
- package/src/pkg/commands/json_resp.ts +11 -0
- package/src/pkg/commands/json_set.ts +35 -0
- package/src/pkg/commands/json_strappend.ts +15 -0
- package/src/pkg/commands/json_strlen.ts +15 -0
- package/src/pkg/commands/json_toggle.ts +12 -0
- package/src/pkg/commands/json_type.ts +12 -0
- package/src/pkg/commands/keys.ts +12 -0
- package/src/pkg/commands/lindex.ts +11 -0
- package/src/pkg/commands/linsert.ts +10 -0
- package/src/pkg/commands/llen.ts +12 -0
- package/src/pkg/commands/lmove.ts +20 -0
- package/src/pkg/commands/lmpop.ts +19 -0
- package/src/pkg/commands/lpop.ts +18 -0
- package/src/pkg/commands/lpos.ts +26 -0
- package/src/pkg/commands/lpush.ts +12 -0
- package/src/pkg/commands/lpushx.ts +12 -0
- package/src/pkg/commands/lrange.ts +11 -0
- package/src/pkg/commands/lrem.ts +10 -0
- package/src/pkg/commands/lset.ts +8 -0
- package/src/pkg/commands/ltrim.ts +8 -0
- package/src/pkg/commands/mget.ts +15 -0
- package/src/pkg/commands/mod.ts +222 -0
- package/src/pkg/commands/mset.ts +12 -0
- package/src/pkg/commands/msetnx.ts +12 -0
- package/src/pkg/commands/persist.ts +12 -0
- package/src/pkg/commands/pexpire.ts +16 -0
- package/src/pkg/commands/pexpireat.ts +16 -0
- package/src/pkg/commands/pfadd.ts +11 -0
- package/src/pkg/commands/pfcount.ts +11 -0
- package/src/pkg/commands/pfmerge.ts +11 -0
- package/src/pkg/commands/ping.ts +15 -0
- package/src/pkg/commands/psetex.ts +14 -0
- package/src/pkg/commands/psubscribe.ts +26 -0
- package/src/pkg/commands/pttl.ts +12 -0
- package/src/pkg/commands/publish.ts +12 -0
- package/src/pkg/commands/randomkey.ts +12 -0
- package/src/pkg/commands/rename.ts +12 -0
- package/src/pkg/commands/renamenx.ts +12 -0
- package/src/pkg/commands/rpop.ts +21 -0
- package/src/pkg/commands/rpush.ts +12 -0
- package/src/pkg/commands/rpushx.ts +12 -0
- package/src/pkg/commands/sadd.ts +15 -0
- package/src/pkg/commands/scan.ts +63 -0
- package/src/pkg/commands/scard.ts +11 -0
- package/src/pkg/commands/script_exists.ts +15 -0
- package/src/pkg/commands/script_flush.ts +22 -0
- package/src/pkg/commands/script_load.ts +12 -0
- package/src/pkg/commands/sdiff.ts +11 -0
- package/src/pkg/commands/sdiffstore.ts +14 -0
- package/src/pkg/commands/search/command-builder.ts +162 -0
- package/src/pkg/commands/search/index.ts +4 -0
- package/src/pkg/commands/search/schema-builder.ts +320 -0
- package/src/pkg/commands/search/search.ts +218 -0
- package/src/pkg/commands/search/types.ts +1029 -0
- package/src/pkg/commands/search/utils.ts +275 -0
- package/src/pkg/commands/set.ts +52 -0
- package/src/pkg/commands/setbit.ts +15 -0
- package/src/pkg/commands/setex.ts +11 -0
- package/src/pkg/commands/setnx.ts +11 -0
- package/src/pkg/commands/setrange.ts +15 -0
- package/src/pkg/commands/sinter.ts +11 -0
- package/src/pkg/commands/sintercard.ts +19 -0
- package/src/pkg/commands/sinterstore.ts +14 -0
- package/src/pkg/commands/sismember.ts +11 -0
- package/src/pkg/commands/smembers.ts +12 -0
- package/src/pkg/commands/smismember.ts +17 -0
- package/src/pkg/commands/smove.ts +14 -0
- package/src/pkg/commands/spop.ts +18 -0
- package/src/pkg/commands/srandmember.ts +18 -0
- package/src/pkg/commands/srem.ts +11 -0
- package/src/pkg/commands/sscan.ts +31 -0
- package/src/pkg/commands/strlen.ts +12 -0
- package/src/pkg/commands/subscribe.ts +254 -0
- package/src/pkg/commands/sunion.ts +12 -0
- package/src/pkg/commands/sunionstore.ts +15 -0
- package/src/pkg/commands/time.ts +10 -0
- package/src/pkg/commands/touch.ts +12 -0
- package/src/pkg/commands/ttl.ts +12 -0
- package/src/pkg/commands/type.ts +13 -0
- package/src/pkg/commands/types.ts +201 -0
- package/src/pkg/commands/unlink.ts +12 -0
- package/src/pkg/commands/vector/index.ts +11 -0
- package/src/pkg/commands/vector/types.ts +63 -0
- package/src/pkg/commands/vector/utils.ts +67 -0
- package/src/pkg/commands/vector/vector.ts +131 -0
- package/src/pkg/commands/vector_add.ts +18 -0
- package/src/pkg/commands/vector_count.ts +11 -0
- package/src/pkg/commands/vector_create.ts +28 -0
- package/src/pkg/commands/vector_del.ts +13 -0
- package/src/pkg/commands/vector_drop.ts +13 -0
- package/src/pkg/commands/vector_get.ts +18 -0
- package/src/pkg/commands/vector_info.ts +25 -0
- package/src/pkg/commands/vector_query.ts +24 -0
- package/src/pkg/commands/xack.ts +16 -0
- package/src/pkg/commands/xackdel.ts +21 -0
- package/src/pkg/commands/xadd.ts +70 -0
- package/src/pkg/commands/xautoclaim.ts +31 -0
- package/src/pkg/commands/xclaim.ts +56 -0
- package/src/pkg/commands/xdel.ts +16 -0
- package/src/pkg/commands/xdelex.ts +25 -0
- package/src/pkg/commands/xgroup.ts +101 -0
- package/src/pkg/commands/xinfo.ts +28 -0
- package/src/pkg/commands/xlen.ts +12 -0
- package/src/pkg/commands/xpending.ts +44 -0
- package/src/pkg/commands/xrange.ts +49 -0
- package/src/pkg/commands/xread.ts +78 -0
- package/src/pkg/commands/xreadgroup.ts +74 -0
- package/src/pkg/commands/xrevrange.ts +48 -0
- package/src/pkg/commands/xtrim.ts +25 -0
- package/src/pkg/commands/zadd.ts +54 -0
- package/src/pkg/commands/zcard.ts +12 -0
- package/src/pkg/commands/zcount.ts +14 -0
- package/src/pkg/commands/zdiffstore.ts +15 -0
- package/src/pkg/commands/zincrby.ts +14 -0
- package/src/pkg/commands/zinterstore.ts +51 -0
- package/src/pkg/commands/zlexcount.ts +11 -0
- package/src/pkg/commands/zmscore.ts +16 -0
- package/src/pkg/commands/zpopmax.ts +18 -0
- package/src/pkg/commands/zpopmin.ts +18 -0
- package/src/pkg/commands/zrange.ts +72 -0
- package/src/pkg/commands/zrank.ts +14 -0
- package/src/pkg/commands/zrem.ts +11 -0
- package/src/pkg/commands/zremrangebylex.ts +11 -0
- package/src/pkg/commands/zremrangebyrank.ts +14 -0
- package/src/pkg/commands/zremrangebyscore.ts +18 -0
- package/src/pkg/commands/zrevrank.ts +14 -0
- package/src/pkg/commands/zscan.ts +31 -0
- package/src/pkg/commands/zscore.ts +15 -0
- package/src/pkg/commands/zunion.ts +54 -0
- package/src/pkg/commands/zunionstore.ts +52 -0
- package/src/pkg/error.ts +28 -0
- package/src/pkg/http.ts +458 -0
- package/src/pkg/index.ts +1 -0
- package/src/pkg/pipeline.ts +2041 -0
- package/src/pkg/redis.ts +2130 -0
- package/src/pkg/script.ts +100 -0
- package/src/pkg/scriptRo.ts +98 -0
- package/src/pkg/types.ts +35 -0
- package/src/pkg/util.ts +115 -0
- package/src/platforms/cloudflare.ts +162 -0
- package/src/platforms/fastly.ts +105 -0
- package/src/platforms/nodejs.ts +231 -0
- package/src/version.ts +1 -0
package/fastly.js
CHANGED
|
@@ -3203,7 +3203,8 @@ var FIELD_TYPES = [
|
|
|
3203
3203
|
"BOOL",
|
|
3204
3204
|
"DATE",
|
|
3205
3205
|
"KEYWORD",
|
|
3206
|
-
"FACET"
|
|
3206
|
+
"FACET",
|
|
3207
|
+
"HYBRID"
|
|
3207
3208
|
];
|
|
3208
3209
|
|
|
3209
3210
|
// pkg/commands/search/utils.ts
|
|
@@ -3573,8 +3574,12 @@ var SearchIndex = class {
|
|
|
3573
3574
|
).exec(this.client);
|
|
3574
3575
|
return deserializeAggregateResponse(rawResult);
|
|
3575
3576
|
}
|
|
3576
|
-
async count({
|
|
3577
|
-
|
|
3577
|
+
async count({
|
|
3578
|
+
filter
|
|
3579
|
+
}) {
|
|
3580
|
+
const command = buildQueryCommand("SEARCH.COUNT", this.name, {
|
|
3581
|
+
filter
|
|
3582
|
+
});
|
|
3578
3583
|
const rawResult = await new ExecCommand(command).exec(
|
|
3579
3584
|
this.client
|
|
3580
3585
|
);
|
|
@@ -3962,82 +3967,102 @@ var Pipeline = class {
|
|
|
3962
3967
|
}
|
|
3963
3968
|
/**
|
|
3964
3969
|
* @see https://redis.io/commands/append
|
|
3970
|
+
* @see node_modules/@upstash/redis/docs/commands/string/append.mdx
|
|
3965
3971
|
*/
|
|
3966
3972
|
append = (...args) => this.chain(new AppendCommand(args, this.commandOptions));
|
|
3967
3973
|
/**
|
|
3968
3974
|
* @see https://upstash.com/docs/redis/commands/array/arcount
|
|
3975
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arcount.mdx
|
|
3969
3976
|
*/
|
|
3970
3977
|
arcount = (...args) => this.chain(new ArCountCommand(args, this.commandOptions));
|
|
3971
3978
|
/**
|
|
3972
3979
|
* @see https://upstash.com/docs/redis/commands/array/ardel
|
|
3980
|
+
* @see node_modules/@upstash/redis/docs/commands/array/ardel.mdx
|
|
3973
3981
|
*/
|
|
3974
3982
|
ardel = (...args) => this.chain(new ArDelCommand(args, this.commandOptions));
|
|
3975
3983
|
/**
|
|
3976
3984
|
* @see https://upstash.com/docs/redis/commands/array/ardelrange
|
|
3985
|
+
* @see node_modules/@upstash/redis/docs/commands/array/ardelrange.mdx
|
|
3977
3986
|
*/
|
|
3978
3987
|
ardelrange = (...args) => this.chain(new ArDelRangeCommand(args, this.commandOptions));
|
|
3979
3988
|
/**
|
|
3980
3989
|
* @see https://upstash.com/docs/redis/commands/array/arget
|
|
3990
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arget.mdx
|
|
3981
3991
|
*/
|
|
3982
3992
|
arget = (...args) => this.chain(new ArGetCommand(args, this.commandOptions));
|
|
3983
3993
|
/**
|
|
3984
3994
|
* @see https://upstash.com/docs/redis/commands/array/argetrange
|
|
3995
|
+
* @see node_modules/@upstash/redis/docs/commands/array/argetrange.mdx
|
|
3985
3996
|
*/
|
|
3986
3997
|
argetrange = (...args) => this.chain(new ArGetRangeCommand(args, this.commandOptions));
|
|
3987
3998
|
/**
|
|
3988
3999
|
* @see https://upstash.com/docs/redis/commands/array/argrep
|
|
4000
|
+
* @see node_modules/@upstash/redis/docs/commands/array/argrep.mdx
|
|
3989
4001
|
*/
|
|
3990
4002
|
argrep = (key, start, end, opts) => this.chain(new ArGrepCommand([key, start, end, opts], this.commandOptions));
|
|
3991
4003
|
/**
|
|
3992
4004
|
* @see https://upstash.com/docs/redis/commands/array/arinfo
|
|
4005
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arinfo.mdx
|
|
3993
4006
|
*/
|
|
3994
4007
|
arinfo = (...args) => this.chain(new ArInfoCommand(args, this.commandOptions));
|
|
3995
4008
|
/**
|
|
3996
4009
|
* @see https://upstash.com/docs/redis/commands/array/arinsert
|
|
4010
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arinsert.mdx
|
|
3997
4011
|
*/
|
|
3998
4012
|
arinsert = (key, ...values) => this.chain(new ArInsertCommand([key, ...values], this.commandOptions));
|
|
3999
4013
|
/**
|
|
4000
4014
|
* @see https://upstash.com/docs/redis/commands/array/arlastitems
|
|
4015
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arlastitems.mdx
|
|
4001
4016
|
*/
|
|
4002
4017
|
arlastitems = (...args) => this.chain(new ArLastItemsCommand(args, this.commandOptions));
|
|
4003
4018
|
/**
|
|
4004
4019
|
* @see https://upstash.com/docs/redis/commands/array/arlen
|
|
4020
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arlen.mdx
|
|
4005
4021
|
*/
|
|
4006
4022
|
arlen = (...args) => this.chain(new ArLenCommand(args, this.commandOptions));
|
|
4007
4023
|
/**
|
|
4008
4024
|
* @see https://upstash.com/docs/redis/commands/array/armget
|
|
4025
|
+
* @see node_modules/@upstash/redis/docs/commands/array/armget.mdx
|
|
4009
4026
|
*/
|
|
4010
4027
|
armget = (...args) => this.chain(new ArMGetCommand(args, this.commandOptions));
|
|
4011
4028
|
/**
|
|
4012
4029
|
* @see https://upstash.com/docs/redis/commands/array/armset
|
|
4030
|
+
* @see node_modules/@upstash/redis/docs/commands/array/armset.mdx
|
|
4013
4031
|
*/
|
|
4014
4032
|
armset = (key, values) => this.chain(new ArMSetCommand([key, values], this.commandOptions));
|
|
4015
4033
|
/**
|
|
4016
4034
|
* @see https://upstash.com/docs/redis/commands/array/arnext
|
|
4035
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arnext.mdx
|
|
4017
4036
|
*/
|
|
4018
4037
|
arnext = (...args) => this.chain(new ArNextCommand(args, this.commandOptions));
|
|
4019
4038
|
/**
|
|
4020
4039
|
* @see https://upstash.com/docs/redis/commands/array/arop
|
|
4040
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arop.mdx
|
|
4021
4041
|
*/
|
|
4022
4042
|
arop = (key, start, end, operation) => this.chain(new ArOpCommand([key, start, end, operation], this.commandOptions));
|
|
4023
4043
|
/**
|
|
4024
4044
|
* @see https://upstash.com/docs/redis/commands/array/arring
|
|
4045
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arring.mdx
|
|
4025
4046
|
*/
|
|
4026
4047
|
arring = (key, size, ...values) => this.chain(new ArRingCommand([key, size, ...values], this.commandOptions));
|
|
4027
4048
|
/**
|
|
4028
4049
|
* @see https://upstash.com/docs/redis/commands/array/arscan
|
|
4050
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arscan.mdx
|
|
4029
4051
|
*/
|
|
4030
4052
|
arscan = (...args) => this.chain(new ArScanCommand(args, this.commandOptions));
|
|
4031
4053
|
/**
|
|
4032
4054
|
* @see https://upstash.com/docs/redis/commands/array/arseek
|
|
4055
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arseek.mdx
|
|
4033
4056
|
*/
|
|
4034
4057
|
arseek = (...args) => this.chain(new ArSeekCommand(args, this.commandOptions));
|
|
4035
4058
|
/**
|
|
4036
4059
|
* @see https://upstash.com/docs/redis/commands/array/arset
|
|
4060
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arset.mdx
|
|
4037
4061
|
*/
|
|
4038
4062
|
arset = (key, index, ...values) => this.chain(new ArSetCommand([key, index, ...values], this.commandOptions));
|
|
4039
4063
|
/**
|
|
4040
4064
|
* @see https://redis.io/commands/bitcount
|
|
4065
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/bitcount.mdx
|
|
4041
4066
|
*/
|
|
4042
4067
|
bitcount = (...args) => this.chain(new BitCountCommand(args, this.commandOptions));
|
|
4043
4068
|
/**
|
|
@@ -4059,16 +4084,19 @@ var Pipeline = class {
|
|
|
4059
4084
|
bitfield = (...args) => new BitFieldCommand(args, this.client, this.commandOptions, this.chain.bind(this));
|
|
4060
4085
|
/**
|
|
4061
4086
|
* @see https://redis.io/commands/bitop
|
|
4087
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/bitop.mdx
|
|
4062
4088
|
*/
|
|
4063
4089
|
bitop = (op, destinationKey, sourceKey, ...sourceKeys) => this.chain(
|
|
4064
4090
|
new BitOpCommand([op, destinationKey, sourceKey, ...sourceKeys], this.commandOptions)
|
|
4065
4091
|
);
|
|
4066
4092
|
/**
|
|
4067
4093
|
* @see https://redis.io/commands/bitpos
|
|
4094
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/bitpos.mdx
|
|
4068
4095
|
*/
|
|
4069
4096
|
bitpos = (...args) => this.chain(new BitPosCommand(args, this.commandOptions));
|
|
4070
4097
|
/**
|
|
4071
4098
|
* @see https://redis.io/commands/client-setinfo
|
|
4099
|
+
* @see node_modules/@upstash/redis/docs/commands/connection/client_setinfo.mdx
|
|
4072
4100
|
*/
|
|
4073
4101
|
clientSetinfo = (...args) => this.chain(new ClientSetInfoCommand(args, this.commandOptions));
|
|
4074
4102
|
/**
|
|
@@ -4077,62 +4105,89 @@ var Pipeline = class {
|
|
|
4077
4105
|
copy = (...args) => this.chain(new CopyCommand(args, this.commandOptions));
|
|
4078
4106
|
/**
|
|
4079
4107
|
* @see https://redis.io/commands/zdiffstore
|
|
4108
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zdiffstore.mdx
|
|
4080
4109
|
*/
|
|
4081
4110
|
zdiffstore = (...args) => this.chain(new ZDiffStoreCommand(args, this.commandOptions));
|
|
4082
4111
|
/**
|
|
4083
4112
|
* @see https://redis.io/commands/dbsize
|
|
4113
|
+
* @see node_modules/@upstash/redis/docs/commands/server/dbsize.mdx
|
|
4084
4114
|
*/
|
|
4085
4115
|
dbsize = () => this.chain(new DBSizeCommand(this.commandOptions));
|
|
4086
4116
|
/**
|
|
4087
4117
|
* @see https://redis.io/commands/decr
|
|
4118
|
+
* @see node_modules/@upstash/redis/docs/commands/string/decr.mdx
|
|
4088
4119
|
*/
|
|
4089
4120
|
decr = (...args) => this.chain(new DecrCommand(args, this.commandOptions));
|
|
4090
4121
|
/**
|
|
4091
4122
|
* @see https://redis.io/commands/decrby
|
|
4123
|
+
* @see node_modules/@upstash/redis/docs/commands/string/decrby.mdx
|
|
4092
4124
|
*/
|
|
4093
4125
|
decrby = (...args) => this.chain(new DecrByCommand(args, this.commandOptions));
|
|
4094
4126
|
/**
|
|
4095
4127
|
* @see https://redis.io/commands/del
|
|
4128
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/del.mdx
|
|
4096
4129
|
*/
|
|
4097
4130
|
del = (...args) => this.chain(new DelCommand(args, this.commandOptions));
|
|
4098
4131
|
/**
|
|
4099
4132
|
* @see https://redis.io/commands/echo
|
|
4133
|
+
* @see node_modules/@upstash/redis/docs/commands/auth/echo.mdx
|
|
4100
4134
|
*/
|
|
4101
4135
|
echo = (...args) => this.chain(new EchoCommand(args, this.commandOptions));
|
|
4102
4136
|
/**
|
|
4103
4137
|
* @see https://redis.io/commands/eval_ro
|
|
4138
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/eval_ro.mdx
|
|
4139
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4140
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4141
|
+
* to receive raw strings.
|
|
4104
4142
|
*/
|
|
4105
4143
|
evalRo = (...args) => this.chain(new EvalROCommand(args, this.commandOptions));
|
|
4106
4144
|
/**
|
|
4107
4145
|
* @see https://redis.io/commands/eval
|
|
4146
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/eval.mdx
|
|
4147
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4148
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4149
|
+
* to receive raw strings.
|
|
4108
4150
|
*/
|
|
4109
4151
|
eval = (...args) => this.chain(new EvalCommand(args, this.commandOptions));
|
|
4110
4152
|
/**
|
|
4111
4153
|
* @see https://redis.io/commands/evalsha_ro
|
|
4154
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/evalsha_ro.mdx
|
|
4155
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4156
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4157
|
+
* to receive raw strings.
|
|
4112
4158
|
*/
|
|
4113
4159
|
evalshaRo = (...args) => this.chain(new EvalshaROCommand(args, this.commandOptions));
|
|
4114
4160
|
/**
|
|
4115
4161
|
* @see https://redis.io/commands/evalsha
|
|
4162
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/evalsha.mdx
|
|
4163
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4164
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4165
|
+
* to receive raw strings.
|
|
4116
4166
|
*/
|
|
4117
4167
|
evalsha = (...args) => this.chain(new EvalshaCommand(args, this.commandOptions));
|
|
4118
4168
|
/**
|
|
4119
4169
|
* @see https://redis.io/commands/exists
|
|
4170
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/exists.mdx
|
|
4120
4171
|
*/
|
|
4121
4172
|
exists = (...args) => this.chain(new ExistsCommand(args, this.commandOptions));
|
|
4122
4173
|
/**
|
|
4123
4174
|
* @see https://redis.io/commands/expire
|
|
4175
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/expire.mdx
|
|
4124
4176
|
*/
|
|
4125
4177
|
expire = (...args) => this.chain(new ExpireCommand(args, this.commandOptions));
|
|
4126
4178
|
/**
|
|
4127
4179
|
* @see https://redis.io/commands/expireat
|
|
4180
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/expireat.mdx
|
|
4128
4181
|
*/
|
|
4129
4182
|
expireat = (...args) => this.chain(new ExpireAtCommand(args, this.commandOptions));
|
|
4130
4183
|
/**
|
|
4131
4184
|
* @see https://redis.io/commands/flushall
|
|
4185
|
+
* @see node_modules/@upstash/redis/docs/commands/server/flushall.mdx
|
|
4132
4186
|
*/
|
|
4133
4187
|
flushall = (args) => this.chain(new FlushAllCommand(args, this.commandOptions));
|
|
4134
4188
|
/**
|
|
4135
4189
|
* @see https://redis.io/commands/flushdb
|
|
4190
|
+
* @see node_modules/@upstash/redis/docs/commands/server/flushdb.mdx
|
|
4136
4191
|
*/
|
|
4137
4192
|
flushdb = (...args) => this.chain(new FlushDBCommand(args, this.commandOptions));
|
|
4138
4193
|
/**
|
|
@@ -4161,106 +4216,166 @@ var Pipeline = class {
|
|
|
4161
4216
|
geosearchstore = (...args) => this.chain(new GeoSearchStoreCommand(args, this.commandOptions));
|
|
4162
4217
|
/**
|
|
4163
4218
|
* @see https://redis.io/commands/get
|
|
4219
|
+
* @see node_modules/@upstash/redis/docs/commands/string/get.mdx
|
|
4220
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4221
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4222
|
+
* to receive raw strings.
|
|
4164
4223
|
*/
|
|
4165
4224
|
get = (...args) => this.chain(new GetCommand(args, this.commandOptions));
|
|
4166
4225
|
/**
|
|
4167
4226
|
* @see https://redis.io/commands/getbit
|
|
4227
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/getbit.mdx
|
|
4168
4228
|
*/
|
|
4169
4229
|
getbit = (...args) => this.chain(new GetBitCommand(args, this.commandOptions));
|
|
4170
4230
|
/**
|
|
4171
4231
|
* @see https://redis.io/commands/getdel
|
|
4232
|
+
* @see node_modules/@upstash/redis/docs/commands/string/getdel.mdx
|
|
4233
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4234
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4235
|
+
* to receive raw strings.
|
|
4172
4236
|
*/
|
|
4173
4237
|
getdel = (...args) => this.chain(new GetDelCommand(args, this.commandOptions));
|
|
4174
4238
|
/**
|
|
4175
4239
|
* @see https://redis.io/commands/getex
|
|
4240
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4241
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4242
|
+
* to receive raw strings.
|
|
4176
4243
|
*/
|
|
4177
4244
|
getex = (...args) => this.chain(new GetExCommand(args, this.commandOptions));
|
|
4178
4245
|
/**
|
|
4179
4246
|
* @see https://redis.io/commands/getrange
|
|
4247
|
+
* @see node_modules/@upstash/redis/docs/commands/string/getrange.mdx
|
|
4180
4248
|
*/
|
|
4181
4249
|
getrange = (...args) => this.chain(new GetRangeCommand(args, this.commandOptions));
|
|
4182
4250
|
/**
|
|
4183
4251
|
* @see https://redis.io/commands/getset
|
|
4252
|
+
* @see node_modules/@upstash/redis/docs/commands/string/getset.mdx
|
|
4253
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4254
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4255
|
+
* to receive raw strings.
|
|
4184
4256
|
*/
|
|
4185
4257
|
getset = (key, value) => this.chain(new GetSetCommand([key, value], this.commandOptions));
|
|
4186
4258
|
/**
|
|
4187
4259
|
* @see https://redis.io/commands/hdel
|
|
4260
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hdel.mdx
|
|
4188
4261
|
*/
|
|
4189
4262
|
hdel = (...args) => this.chain(new HDelCommand(args, this.commandOptions));
|
|
4190
4263
|
/**
|
|
4191
4264
|
* @see https://redis.io/commands/hexists
|
|
4265
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hexists.mdx
|
|
4192
4266
|
*/
|
|
4193
4267
|
hexists = (...args) => this.chain(new HExistsCommand(args, this.commandOptions));
|
|
4194
4268
|
/**
|
|
4195
4269
|
* @see https://redis.io/commands/hexpire
|
|
4270
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hexpire.mdx
|
|
4196
4271
|
*/
|
|
4197
4272
|
hexpire = (...args) => this.chain(new HExpireCommand(args, this.commandOptions));
|
|
4198
4273
|
/**
|
|
4199
4274
|
* @see https://redis.io/commands/hexpireat
|
|
4275
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hexpireat.mdx
|
|
4200
4276
|
*/
|
|
4201
4277
|
hexpireat = (...args) => this.chain(new HExpireAtCommand(args, this.commandOptions));
|
|
4202
4278
|
/**
|
|
4203
4279
|
* @see https://redis.io/commands/hexpiretime
|
|
4280
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hexpiretime.mdx
|
|
4204
4281
|
*/
|
|
4205
4282
|
hexpiretime = (...args) => this.chain(new HExpireTimeCommand(args, this.commandOptions));
|
|
4206
4283
|
/**
|
|
4207
4284
|
* @see https://redis.io/commands/httl
|
|
4285
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/httl.mdx
|
|
4208
4286
|
*/
|
|
4209
4287
|
httl = (...args) => this.chain(new HTtlCommand(args, this.commandOptions));
|
|
4210
4288
|
/**
|
|
4211
4289
|
* @see https://redis.io/commands/hpexpire
|
|
4290
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpexpire.mdx
|
|
4212
4291
|
*/
|
|
4213
4292
|
hpexpire = (...args) => this.chain(new HPExpireCommand(args, this.commandOptions));
|
|
4214
4293
|
/**
|
|
4215
4294
|
* @see https://redis.io/commands/hpexpireat
|
|
4295
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpexpireat.mdx
|
|
4216
4296
|
*/
|
|
4217
4297
|
hpexpireat = (...args) => this.chain(new HPExpireAtCommand(args, this.commandOptions));
|
|
4218
4298
|
/**
|
|
4219
4299
|
* @see https://redis.io/commands/hpexpiretime
|
|
4300
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpexpiretime.mdx
|
|
4220
4301
|
*/
|
|
4221
4302
|
hpexpiretime = (...args) => this.chain(new HPExpireTimeCommand(args, this.commandOptions));
|
|
4222
4303
|
/**
|
|
4223
4304
|
* @see https://redis.io/commands/hpttl
|
|
4305
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpttl.mdx
|
|
4224
4306
|
*/
|
|
4225
4307
|
hpttl = (...args) => this.chain(new HPTtlCommand(args, this.commandOptions));
|
|
4226
4308
|
/**
|
|
4227
4309
|
* @see https://redis.io/commands/hpersist
|
|
4310
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpersist.mdx
|
|
4228
4311
|
*/
|
|
4229
4312
|
hpersist = (...args) => this.chain(new HPersistCommand(args, this.commandOptions));
|
|
4230
4313
|
/**
|
|
4231
4314
|
* @see https://redis.io/commands/hget
|
|
4315
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hget.mdx
|
|
4316
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4317
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4318
|
+
* to receive raw strings.
|
|
4232
4319
|
*/
|
|
4233
4320
|
hget = (...args) => this.chain(new HGetCommand(args, this.commandOptions));
|
|
4234
4321
|
/**
|
|
4235
4322
|
* @see https://redis.io/commands/hgetall
|
|
4323
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hgetall.mdx
|
|
4324
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4325
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4326
|
+
* to receive raw strings.
|
|
4327
|
+
* With automaticDeserialization: false, hgetall returns a flat array instead, such as
|
|
4328
|
+
* ["text", "123", "version", "1"], and [] for a missing key.
|
|
4236
4329
|
*/
|
|
4237
4330
|
hgetall = (...args) => this.chain(new HGetAllCommand(args, this.commandOptions));
|
|
4238
4331
|
/**
|
|
4239
4332
|
* @see https://redis.io/commands/hgetdel
|
|
4333
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hgetdel.mdx
|
|
4334
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4335
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4336
|
+
* to receive raw strings.
|
|
4337
|
+
* With automaticDeserialization: false, hgetdel returns an array of values in field order instead,
|
|
4338
|
+
* such as ["123", null], with null for each field when the key is missing.
|
|
4240
4339
|
*/
|
|
4241
4340
|
hgetdel = (...args) => this.chain(new HGetDelCommand(args, this.commandOptions));
|
|
4242
4341
|
/**
|
|
4243
4342
|
* @see https://redis.io/commands/hgetex
|
|
4343
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hgetex.mdx
|
|
4344
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4345
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4346
|
+
* to receive raw strings.
|
|
4347
|
+
* With automaticDeserialization: false, hgetex returns an array of values in field order instead,
|
|
4348
|
+
* such as ["123", null], with null for each field when the key is missing.
|
|
4244
4349
|
*/
|
|
4245
4350
|
hgetex = (...args) => this.chain(new HGetExCommand(args, this.commandOptions));
|
|
4246
4351
|
/**
|
|
4247
4352
|
* @see https://redis.io/commands/hincrby
|
|
4353
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hincrby.mdx
|
|
4248
4354
|
*/
|
|
4249
4355
|
hincrby = (...args) => this.chain(new HIncrByCommand(args, this.commandOptions));
|
|
4250
4356
|
/**
|
|
4251
4357
|
* @see https://redis.io/commands/hincrbyfloat
|
|
4358
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hincrbyfloat.mdx
|
|
4252
4359
|
*/
|
|
4253
4360
|
hincrbyfloat = (...args) => this.chain(new HIncrByFloatCommand(args, this.commandOptions));
|
|
4254
4361
|
/**
|
|
4255
4362
|
* @see https://redis.io/commands/hkeys
|
|
4363
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hkeys.mdx
|
|
4256
4364
|
*/
|
|
4257
4365
|
hkeys = (...args) => this.chain(new HKeysCommand(args, this.commandOptions));
|
|
4258
4366
|
/**
|
|
4259
4367
|
* @see https://redis.io/commands/hlen
|
|
4368
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hlen.mdx
|
|
4260
4369
|
*/
|
|
4261
4370
|
hlen = (...args) => this.chain(new HLenCommand(args, this.commandOptions));
|
|
4262
4371
|
/**
|
|
4263
4372
|
* @see https://redis.io/commands/hmget
|
|
4373
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hmget.mdx
|
|
4374
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4375
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4376
|
+
* to receive raw strings.
|
|
4377
|
+
* With automaticDeserialization: false, hmget returns an array of values in field order instead,
|
|
4378
|
+
* such as ["123", null], with null for each field when the key is missing.
|
|
4264
4379
|
*/
|
|
4265
4380
|
hmget = (...args) => this.chain(new HMGetCommand(args, this.commandOptions));
|
|
4266
4381
|
/**
|
|
@@ -4269,66 +4384,88 @@ var Pipeline = class {
|
|
|
4269
4384
|
hmset = (key, kv) => this.chain(new HMSetCommand([key, kv], this.commandOptions));
|
|
4270
4385
|
/**
|
|
4271
4386
|
* @see https://redis.io/commands/hrandfield
|
|
4387
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hrandfield.mdx
|
|
4272
4388
|
*/
|
|
4273
4389
|
hrandfield = (key, count, withValues) => this.chain(new HRandFieldCommand([key, count, withValues], this.commandOptions));
|
|
4274
4390
|
/**
|
|
4275
4391
|
* @see https://redis.io/commands/hscan
|
|
4392
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hscan.mdx
|
|
4276
4393
|
*/
|
|
4277
4394
|
hscan = (...args) => this.chain(new HScanCommand(args, this.commandOptions));
|
|
4278
4395
|
/**
|
|
4279
4396
|
* @see https://redis.io/commands/hset
|
|
4397
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hset.mdx
|
|
4280
4398
|
*/
|
|
4281
4399
|
hset = (key, kv) => this.chain(new HSetCommand([key, kv], this.commandOptions));
|
|
4282
4400
|
/**
|
|
4283
4401
|
* @see https://redis.io/commands/hsetex
|
|
4402
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hsetex.mdx
|
|
4284
4403
|
*/
|
|
4285
4404
|
hsetex = (...args) => this.chain(new HSetExCommand(args, this.commandOptions));
|
|
4286
4405
|
/**
|
|
4287
4406
|
* @see https://redis.io/commands/hsetnx
|
|
4407
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hsetnx.mdx
|
|
4288
4408
|
*/
|
|
4289
4409
|
hsetnx = (key, field, value) => this.chain(new HSetNXCommand([key, field, value], this.commandOptions));
|
|
4290
4410
|
/**
|
|
4291
4411
|
* @see https://redis.io/commands/hstrlen
|
|
4412
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hstrlen.mdx
|
|
4292
4413
|
*/
|
|
4293
4414
|
hstrlen = (...args) => this.chain(new HStrLenCommand(args, this.commandOptions));
|
|
4294
4415
|
/**
|
|
4295
4416
|
* @see https://redis.io/commands/hvals
|
|
4417
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hvals.mdx
|
|
4296
4418
|
*/
|
|
4297
4419
|
hvals = (...args) => this.chain(new HValsCommand(args, this.commandOptions));
|
|
4298
4420
|
/**
|
|
4299
4421
|
* @see https://redis.io/commands/incr
|
|
4422
|
+
* @see node_modules/@upstash/redis/docs/commands/string/incr.mdx
|
|
4300
4423
|
*/
|
|
4301
4424
|
incr = (...args) => this.chain(new IncrCommand(args, this.commandOptions));
|
|
4302
4425
|
/**
|
|
4303
4426
|
* @see https://redis.io/commands/incrby
|
|
4427
|
+
* @see node_modules/@upstash/redis/docs/commands/string/incrby.mdx
|
|
4304
4428
|
*/
|
|
4305
4429
|
incrby = (...args) => this.chain(new IncrByCommand(args, this.commandOptions));
|
|
4306
4430
|
/**
|
|
4307
4431
|
* @see https://redis.io/commands/incrbyfloat
|
|
4432
|
+
* @see node_modules/@upstash/redis/docs/commands/string/incrbyfloat.mdx
|
|
4308
4433
|
*/
|
|
4309
4434
|
incrbyfloat = (...args) => this.chain(new IncrByFloatCommand(args, this.commandOptions));
|
|
4310
4435
|
/**
|
|
4311
4436
|
* @see https://redis.io/commands/keys
|
|
4437
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/keys.mdx
|
|
4312
4438
|
*/
|
|
4313
4439
|
keys = (...args) => this.chain(new KeysCommand(args, this.commandOptions));
|
|
4314
4440
|
/**
|
|
4315
4441
|
* @see https://redis.io/commands/lindex
|
|
4442
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lindex.mdx
|
|
4443
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4444
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4445
|
+
* to receive raw strings.
|
|
4316
4446
|
*/
|
|
4317
4447
|
lindex = (...args) => this.chain(new LIndexCommand(args, this.commandOptions));
|
|
4318
4448
|
/**
|
|
4319
4449
|
* @see https://redis.io/commands/linsert
|
|
4450
|
+
* @see node_modules/@upstash/redis/docs/commands/list/linsert.mdx
|
|
4320
4451
|
*/
|
|
4321
4452
|
linsert = (key, direction, pivot, value) => this.chain(new LInsertCommand([key, direction, pivot, value], this.commandOptions));
|
|
4322
4453
|
/**
|
|
4323
4454
|
* @see https://redis.io/commands/llen
|
|
4455
|
+
* @see node_modules/@upstash/redis/docs/commands/list/llen.mdx
|
|
4324
4456
|
*/
|
|
4325
4457
|
llen = (...args) => this.chain(new LLenCommand(args, this.commandOptions));
|
|
4326
4458
|
/**
|
|
4327
4459
|
* @see https://redis.io/commands/lmove
|
|
4460
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lmove.mdx
|
|
4328
4461
|
*/
|
|
4329
4462
|
lmove = (...args) => this.chain(new LMoveCommand(args, this.commandOptions));
|
|
4330
4463
|
/**
|
|
4331
4464
|
* @see https://redis.io/commands/lpop
|
|
4465
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lpop.mdx
|
|
4466
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4467
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4468
|
+
* to receive raw strings.
|
|
4332
4469
|
*/
|
|
4333
4470
|
lpop = (...args) => this.chain(new LPopCommand(args, this.commandOptions));
|
|
4334
4471
|
/**
|
|
@@ -4337,54 +4474,73 @@ var Pipeline = class {
|
|
|
4337
4474
|
lmpop = (...args) => this.chain(new LmPopCommand(args, this.commandOptions));
|
|
4338
4475
|
/**
|
|
4339
4476
|
* @see https://redis.io/commands/lpos
|
|
4477
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lpos.mdx
|
|
4340
4478
|
*/
|
|
4341
4479
|
lpos = (...args) => this.chain(new LPosCommand(args, this.commandOptions));
|
|
4342
4480
|
/**
|
|
4343
4481
|
* @see https://redis.io/commands/lpush
|
|
4482
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lpush.mdx
|
|
4344
4483
|
*/
|
|
4345
4484
|
lpush = (key, ...elements) => this.chain(new LPushCommand([key, ...elements], this.commandOptions));
|
|
4346
4485
|
/**
|
|
4347
4486
|
* @see https://redis.io/commands/lpushx
|
|
4487
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lpushx.mdx
|
|
4348
4488
|
*/
|
|
4349
4489
|
lpushx = (key, ...elements) => this.chain(new LPushXCommand([key, ...elements], this.commandOptions));
|
|
4350
4490
|
/**
|
|
4351
4491
|
* @see https://redis.io/commands/lrange
|
|
4492
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lrange.mdx
|
|
4493
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4494
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4495
|
+
* to receive raw strings.
|
|
4352
4496
|
*/
|
|
4353
4497
|
lrange = (...args) => this.chain(new LRangeCommand(args, this.commandOptions));
|
|
4354
4498
|
/**
|
|
4355
4499
|
* @see https://redis.io/commands/lrem
|
|
4500
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lrem.mdx
|
|
4356
4501
|
*/
|
|
4357
4502
|
lrem = (key, count, value) => this.chain(new LRemCommand([key, count, value], this.commandOptions));
|
|
4358
4503
|
/**
|
|
4359
4504
|
* @see https://redis.io/commands/lset
|
|
4505
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lset.mdx
|
|
4360
4506
|
*/
|
|
4361
4507
|
lset = (key, index, value) => this.chain(new LSetCommand([key, index, value], this.commandOptions));
|
|
4362
4508
|
/**
|
|
4363
4509
|
* @see https://redis.io/commands/ltrim
|
|
4510
|
+
* @see node_modules/@upstash/redis/docs/commands/list/ltrim.mdx
|
|
4364
4511
|
*/
|
|
4365
4512
|
ltrim = (...args) => this.chain(new LTrimCommand(args, this.commandOptions));
|
|
4366
4513
|
/**
|
|
4367
4514
|
* @see https://redis.io/commands/mget
|
|
4515
|
+
* @see node_modules/@upstash/redis/docs/commands/string/mget.mdx
|
|
4516
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4517
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4518
|
+
* to receive raw strings.
|
|
4368
4519
|
*/
|
|
4369
4520
|
mget = (...args) => this.chain(new MGetCommand(args, this.commandOptions));
|
|
4370
4521
|
/**
|
|
4371
4522
|
* @see https://redis.io/commands/mset
|
|
4523
|
+
* @see node_modules/@upstash/redis/docs/commands/string/mset.mdx
|
|
4372
4524
|
*/
|
|
4373
4525
|
mset = (kv) => this.chain(new MSetCommand([kv], this.commandOptions));
|
|
4374
4526
|
/**
|
|
4375
4527
|
* @see https://redis.io/commands/msetnx
|
|
4528
|
+
* @see node_modules/@upstash/redis/docs/commands/string/msetnx.mdx
|
|
4376
4529
|
*/
|
|
4377
4530
|
msetnx = (kv) => this.chain(new MSetNXCommand([kv], this.commandOptions));
|
|
4378
4531
|
/**
|
|
4379
4532
|
* @see https://redis.io/commands/persist
|
|
4533
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/persist.mdx
|
|
4380
4534
|
*/
|
|
4381
4535
|
persist = (...args) => this.chain(new PersistCommand(args, this.commandOptions));
|
|
4382
4536
|
/**
|
|
4383
4537
|
* @see https://redis.io/commands/pexpire
|
|
4538
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/pexpire.mdx
|
|
4384
4539
|
*/
|
|
4385
4540
|
pexpire = (...args) => this.chain(new PExpireCommand(args, this.commandOptions));
|
|
4386
4541
|
/**
|
|
4387
4542
|
* @see https://redis.io/commands/pexpireat
|
|
4543
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/pexpireat.mdx
|
|
4388
4544
|
*/
|
|
4389
4545
|
pexpireat = (...args) => this.chain(new PExpireAtCommand(args, this.commandOptions));
|
|
4390
4546
|
/**
|
|
@@ -4401,6 +4557,7 @@ var Pipeline = class {
|
|
|
4401
4557
|
pfmerge = (...args) => this.chain(new PfMergeCommand(args, this.commandOptions));
|
|
4402
4558
|
/**
|
|
4403
4559
|
* @see https://redis.io/commands/ping
|
|
4560
|
+
* @see node_modules/@upstash/redis/docs/commands/auth/ping.mdx
|
|
4404
4561
|
*/
|
|
4405
4562
|
ping = (args) => this.chain(new PingCommand(args, this.commandOptions));
|
|
4406
4563
|
/**
|
|
@@ -4409,74 +4566,95 @@ var Pipeline = class {
|
|
|
4409
4566
|
psetex = (key, ttl, value) => this.chain(new PSetEXCommand([key, ttl, value], this.commandOptions));
|
|
4410
4567
|
/**
|
|
4411
4568
|
* @see https://redis.io/commands/pttl
|
|
4569
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/pttl.mdx
|
|
4412
4570
|
*/
|
|
4413
4571
|
pttl = (...args) => this.chain(new PTtlCommand(args, this.commandOptions));
|
|
4414
4572
|
/**
|
|
4415
4573
|
* @see https://redis.io/commands/publish
|
|
4574
|
+
* @see node_modules/@upstash/redis/docs/commands/pubsub/publish.mdx
|
|
4416
4575
|
*/
|
|
4417
4576
|
publish = (...args) => this.chain(new PublishCommand(args, this.commandOptions));
|
|
4418
4577
|
/**
|
|
4419
4578
|
* @see https://redis.io/commands/randomkey
|
|
4579
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/randomkey.mdx
|
|
4420
4580
|
*/
|
|
4421
4581
|
randomkey = () => this.chain(new RandomKeyCommand(this.commandOptions));
|
|
4422
4582
|
/**
|
|
4423
4583
|
* @see https://redis.io/commands/rename
|
|
4584
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/rename.mdx
|
|
4424
4585
|
*/
|
|
4425
4586
|
rename = (...args) => this.chain(new RenameCommand(args, this.commandOptions));
|
|
4426
4587
|
/**
|
|
4427
4588
|
* @see https://redis.io/commands/renamenx
|
|
4589
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/renamenx.mdx
|
|
4428
4590
|
*/
|
|
4429
4591
|
renamenx = (...args) => this.chain(new RenameNXCommand(args, this.commandOptions));
|
|
4430
4592
|
/**
|
|
4431
4593
|
* @see https://redis.io/commands/rpop
|
|
4594
|
+
* @see node_modules/@upstash/redis/docs/commands/list/rpop.mdx
|
|
4595
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4596
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4597
|
+
* to receive raw strings.
|
|
4432
4598
|
*/
|
|
4433
4599
|
rpop = (...args) => this.chain(new RPopCommand(args, this.commandOptions));
|
|
4434
4600
|
/**
|
|
4435
4601
|
* @see https://redis.io/commands/rpush
|
|
4602
|
+
* @see node_modules/@upstash/redis/docs/commands/list/rpush.mdx
|
|
4436
4603
|
*/
|
|
4437
4604
|
rpush = (key, ...elements) => this.chain(new RPushCommand([key, ...elements], this.commandOptions));
|
|
4438
4605
|
/**
|
|
4439
4606
|
* @see https://redis.io/commands/rpushx
|
|
4607
|
+
* @see node_modules/@upstash/redis/docs/commands/list/rpushx.mdx
|
|
4440
4608
|
*/
|
|
4441
4609
|
rpushx = (key, ...elements) => this.chain(new RPushXCommand([key, ...elements], this.commandOptions));
|
|
4442
4610
|
/**
|
|
4443
4611
|
* @see https://redis.io/commands/sadd
|
|
4612
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sadd.mdx
|
|
4444
4613
|
*/
|
|
4445
4614
|
sadd = (key, member, ...members) => this.chain(new SAddCommand([key, member, ...members], this.commandOptions));
|
|
4446
4615
|
/**
|
|
4447
4616
|
* @see https://redis.io/commands/scan
|
|
4617
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/scan.mdx
|
|
4448
4618
|
*/
|
|
4449
4619
|
scan = (...args) => this.chain(new ScanCommand(args, this.commandOptions));
|
|
4450
4620
|
/**
|
|
4451
4621
|
* @see https://redis.io/commands/scard
|
|
4622
|
+
* @see node_modules/@upstash/redis/docs/commands/set/scard.mdx
|
|
4452
4623
|
*/
|
|
4453
4624
|
scard = (...args) => this.chain(new SCardCommand(args, this.commandOptions));
|
|
4454
4625
|
/**
|
|
4455
4626
|
* @see https://redis.io/commands/script-exists
|
|
4627
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/script_exists.mdx
|
|
4456
4628
|
*/
|
|
4457
4629
|
scriptExists = (...args) => this.chain(new ScriptExistsCommand(args, this.commandOptions));
|
|
4458
4630
|
/**
|
|
4459
4631
|
* @see https://redis.io/commands/script-flush
|
|
4632
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/script_flush.mdx
|
|
4460
4633
|
*/
|
|
4461
4634
|
scriptFlush = (...args) => this.chain(new ScriptFlushCommand(args, this.commandOptions));
|
|
4462
4635
|
/**
|
|
4463
4636
|
* @see https://redis.io/commands/script-load
|
|
4637
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/script_load.mdx
|
|
4464
4638
|
*/
|
|
4465
4639
|
scriptLoad = (...args) => this.chain(new ScriptLoadCommand(args, this.commandOptions));
|
|
4466
4640
|
/*)*
|
|
4467
4641
|
* @see https://redis.io/commands/sdiff
|
|
4642
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sdiff.mdx
|
|
4468
4643
|
*/
|
|
4469
4644
|
sdiff = (...args) => this.chain(new SDiffCommand(args, this.commandOptions));
|
|
4470
4645
|
/**
|
|
4471
4646
|
* @see https://redis.io/commands/sdiffstore
|
|
4647
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sdiffstore.mdx
|
|
4472
4648
|
*/
|
|
4473
4649
|
sdiffstore = (...args) => this.chain(new SDiffStoreCommand(args, this.commandOptions));
|
|
4474
4650
|
/**
|
|
4475
4651
|
* @see https://redis.io/commands/set
|
|
4652
|
+
* @see node_modules/@upstash/redis/docs/commands/string/set.mdx
|
|
4476
4653
|
*/
|
|
4477
4654
|
set = (key, value, opts) => this.chain(new SetCommand([key, value, opts], this.commandOptions));
|
|
4478
4655
|
/**
|
|
4479
4656
|
* @see https://redis.io/commands/setbit
|
|
4657
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/setbit.mdx
|
|
4480
4658
|
*/
|
|
4481
4659
|
setbit = (...args) => this.chain(new SetBitCommand(args, this.commandOptions));
|
|
4482
4660
|
/**
|
|
@@ -4489,10 +4667,12 @@ var Pipeline = class {
|
|
|
4489
4667
|
setnx = (key, value) => this.chain(new SetNxCommand([key, value], this.commandOptions));
|
|
4490
4668
|
/**
|
|
4491
4669
|
* @see https://redis.io/commands/setrange
|
|
4670
|
+
* @see node_modules/@upstash/redis/docs/commands/string/setrange.mdx
|
|
4492
4671
|
*/
|
|
4493
4672
|
setrange = (...args) => this.chain(new SetRangeCommand(args, this.commandOptions));
|
|
4494
4673
|
/**
|
|
4495
4674
|
* @see https://redis.io/commands/sinter
|
|
4675
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sinter.mdx
|
|
4496
4676
|
*/
|
|
4497
4677
|
sinter = (...args) => this.chain(new SInterCommand(args, this.commandOptions));
|
|
4498
4678
|
/**
|
|
@@ -4501,50 +4681,62 @@ var Pipeline = class {
|
|
|
4501
4681
|
sintercard = (...args) => this.chain(new SInterCardCommand(args, this.commandOptions));
|
|
4502
4682
|
/**
|
|
4503
4683
|
* @see https://redis.io/commands/sinterstore
|
|
4684
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sinterstore.mdx
|
|
4504
4685
|
*/
|
|
4505
4686
|
sinterstore = (...args) => this.chain(new SInterStoreCommand(args, this.commandOptions));
|
|
4506
4687
|
/**
|
|
4507
4688
|
* @see https://redis.io/commands/sismember
|
|
4689
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sismember.mdx
|
|
4508
4690
|
*/
|
|
4509
4691
|
sismember = (key, member) => this.chain(new SIsMemberCommand([key, member], this.commandOptions));
|
|
4510
4692
|
/**
|
|
4511
4693
|
* @see https://redis.io/commands/smembers
|
|
4694
|
+
* @see node_modules/@upstash/redis/docs/commands/set/smembers.mdx
|
|
4512
4695
|
*/
|
|
4513
4696
|
smembers = (...args) => this.chain(new SMembersCommand(args, this.commandOptions));
|
|
4514
4697
|
/**
|
|
4515
4698
|
* @see https://redis.io/commands/smismember
|
|
4699
|
+
* @see node_modules/@upstash/redis/docs/commands/set/smismember.mdx
|
|
4516
4700
|
*/
|
|
4517
4701
|
smismember = (key, members) => this.chain(new SMIsMemberCommand([key, members], this.commandOptions));
|
|
4518
4702
|
/**
|
|
4519
4703
|
* @see https://redis.io/commands/smove
|
|
4704
|
+
* @see node_modules/@upstash/redis/docs/commands/set/smove.mdx
|
|
4520
4705
|
*/
|
|
4521
4706
|
smove = (source, destination, member) => this.chain(new SMoveCommand([source, destination, member], this.commandOptions));
|
|
4522
4707
|
/**
|
|
4523
4708
|
* @see https://redis.io/commands/spop
|
|
4709
|
+
* @see node_modules/@upstash/redis/docs/commands/set/spop.mdx
|
|
4524
4710
|
*/
|
|
4525
4711
|
spop = (...args) => this.chain(new SPopCommand(args, this.commandOptions));
|
|
4526
4712
|
/**
|
|
4527
4713
|
* @see https://redis.io/commands/srandmember
|
|
4714
|
+
* @see node_modules/@upstash/redis/docs/commands/set/srandmember.mdx
|
|
4528
4715
|
*/
|
|
4529
4716
|
srandmember = (...args) => this.chain(new SRandMemberCommand(args, this.commandOptions));
|
|
4530
4717
|
/**
|
|
4531
4718
|
* @see https://redis.io/commands/srem
|
|
4719
|
+
* @see node_modules/@upstash/redis/docs/commands/set/srem.mdx
|
|
4532
4720
|
*/
|
|
4533
4721
|
srem = (key, ...members) => this.chain(new SRemCommand([key, ...members], this.commandOptions));
|
|
4534
4722
|
/**
|
|
4535
4723
|
* @see https://redis.io/commands/sscan
|
|
4724
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sscan.mdx
|
|
4536
4725
|
*/
|
|
4537
4726
|
sscan = (...args) => this.chain(new SScanCommand(args, this.commandOptions));
|
|
4538
4727
|
/**
|
|
4539
4728
|
* @see https://redis.io/commands/strlen
|
|
4729
|
+
* @see node_modules/@upstash/redis/docs/commands/string/strlen.mdx
|
|
4540
4730
|
*/
|
|
4541
4731
|
strlen = (...args) => this.chain(new StrLenCommand(args, this.commandOptions));
|
|
4542
4732
|
/**
|
|
4543
4733
|
* @see https://redis.io/commands/sunion
|
|
4734
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sunion.mdx
|
|
4544
4735
|
*/
|
|
4545
4736
|
sunion = (...args) => this.chain(new SUnionCommand(args, this.commandOptions));
|
|
4546
4737
|
/**
|
|
4547
4738
|
* @see https://redis.io/commands/sunionstore
|
|
4739
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sunionstore.mdx
|
|
4548
4740
|
*/
|
|
4549
4741
|
sunionstore = (...args) => this.chain(new SUnionStoreCommand(args, this.commandOptions));
|
|
4550
4742
|
/**
|
|
@@ -4553,22 +4745,27 @@ var Pipeline = class {
|
|
|
4553
4745
|
time = () => this.chain(new TimeCommand(this.commandOptions));
|
|
4554
4746
|
/**
|
|
4555
4747
|
* @see https://redis.io/commands/touch
|
|
4748
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/touch.mdx
|
|
4556
4749
|
*/
|
|
4557
4750
|
touch = (...args) => this.chain(new TouchCommand(args, this.commandOptions));
|
|
4558
4751
|
/**
|
|
4559
4752
|
* @see https://redis.io/commands/ttl
|
|
4753
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/ttl.mdx
|
|
4560
4754
|
*/
|
|
4561
4755
|
ttl = (...args) => this.chain(new TtlCommand(args, this.commandOptions));
|
|
4562
4756
|
/**
|
|
4563
4757
|
* @see https://redis.io/commands/type
|
|
4758
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/type.mdx
|
|
4564
4759
|
*/
|
|
4565
4760
|
type = (...args) => this.chain(new TypeCommand(args, this.commandOptions));
|
|
4566
4761
|
/**
|
|
4567
4762
|
* @see https://redis.io/commands/unlink
|
|
4763
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/unlink.mdx
|
|
4568
4764
|
*/
|
|
4569
4765
|
unlink = (...args) => this.chain(new UnlinkCommand(args, this.commandOptions));
|
|
4570
4766
|
/**
|
|
4571
4767
|
* @see https://redis.io/commands/zadd
|
|
4768
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zadd.mdx
|
|
4572
4769
|
*/
|
|
4573
4770
|
zadd = (...args) => {
|
|
4574
4771
|
if ("score" in args[1]) {
|
|
@@ -4585,138 +4782,185 @@ var Pipeline = class {
|
|
|
4585
4782
|
};
|
|
4586
4783
|
/**
|
|
4587
4784
|
* @see https://redis.io/commands/xadd
|
|
4785
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xadd.mdx
|
|
4588
4786
|
*/
|
|
4589
4787
|
xadd = (...args) => this.chain(new XAddCommand(args, this.commandOptions));
|
|
4590
4788
|
/**
|
|
4591
4789
|
* @see https://redis.io/commands/xack
|
|
4790
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xack.mdx
|
|
4592
4791
|
*/
|
|
4593
4792
|
xack = (...args) => this.chain(new XAckCommand(args, this.commandOptions));
|
|
4594
4793
|
/**
|
|
4595
4794
|
* @see https://redis.io/commands/xackdel
|
|
4795
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xackdel.mdx
|
|
4596
4796
|
*/
|
|
4597
4797
|
xackdel = (...args) => this.chain(new XAckDelCommand(args, this.commandOptions));
|
|
4598
4798
|
/**
|
|
4599
4799
|
* @see https://redis.io/commands/xdel
|
|
4800
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xdel.mdx
|
|
4600
4801
|
*/
|
|
4601
4802
|
xdel = (...args) => this.chain(new XDelCommand(args, this.commandOptions));
|
|
4602
4803
|
/**
|
|
4603
4804
|
* @see https://redis.io/commands/xdelex
|
|
4805
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xdelex.mdx
|
|
4604
4806
|
*/
|
|
4605
4807
|
xdelex = (...args) => this.chain(new XDelExCommand(args, this.commandOptions));
|
|
4606
4808
|
/**
|
|
4607
4809
|
* @see https://redis.io/commands/xgroup
|
|
4810
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xgroup.mdx
|
|
4608
4811
|
*/
|
|
4609
4812
|
xgroup = (...args) => this.chain(new XGroupCommand(args, this.commandOptions));
|
|
4610
4813
|
/**
|
|
4611
4814
|
* @see https://redis.io/commands/xread
|
|
4815
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xread.mdx
|
|
4612
4816
|
*/
|
|
4613
4817
|
xread = (...args) => this.chain(new XReadCommand(args, this.commandOptions));
|
|
4614
4818
|
/**
|
|
4615
4819
|
* @see https://redis.io/commands/xreadgroup
|
|
4820
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xreadgroup.mdx
|
|
4616
4821
|
*/
|
|
4617
4822
|
xreadgroup = (...args) => this.chain(new XReadGroupCommand(args, this.commandOptions));
|
|
4618
4823
|
/**
|
|
4619
4824
|
* @see https://redis.io/commands/xinfo
|
|
4825
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xinfo.mdx
|
|
4620
4826
|
*/
|
|
4621
4827
|
xinfo = (...args) => this.chain(new XInfoCommand(args, this.commandOptions));
|
|
4622
4828
|
/**
|
|
4623
4829
|
* @see https://redis.io/commands/xlen
|
|
4830
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xlen.mdx
|
|
4624
4831
|
*/
|
|
4625
4832
|
xlen = (...args) => this.chain(new XLenCommand(args, this.commandOptions));
|
|
4626
4833
|
/**
|
|
4627
4834
|
* @see https://redis.io/commands/xpending
|
|
4835
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xpending.mdx
|
|
4628
4836
|
*/
|
|
4629
4837
|
xpending = (...args) => this.chain(new XPendingCommand(args, this.commandOptions));
|
|
4630
4838
|
/**
|
|
4631
4839
|
* @see https://redis.io/commands/xclaim
|
|
4840
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xclaim.mdx
|
|
4632
4841
|
*/
|
|
4633
4842
|
xclaim = (...args) => this.chain(new XClaimCommand(args, this.commandOptions));
|
|
4634
4843
|
/**
|
|
4635
4844
|
* @see https://redis.io/commands/xautoclaim
|
|
4845
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xautoclaim.mdx
|
|
4636
4846
|
*/
|
|
4637
4847
|
xautoclaim = (...args) => this.chain(new XAutoClaim(args, this.commandOptions));
|
|
4638
4848
|
/**
|
|
4639
4849
|
* @see https://redis.io/commands/xtrim
|
|
4850
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xtrim.mdx
|
|
4640
4851
|
*/
|
|
4641
4852
|
xtrim = (...args) => this.chain(new XTrimCommand(args, this.commandOptions));
|
|
4642
4853
|
/**
|
|
4643
4854
|
* @see https://redis.io/commands/xrange
|
|
4855
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xrange.mdx
|
|
4856
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4857
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4858
|
+
* to receive raw strings.
|
|
4859
|
+
* With automaticDeserialization: false, xrange returns [id, [field, value, ...]] entries instead,
|
|
4860
|
+
* such as [["1790341484470-0", ["text", "123"]]], and [] for a missing key.
|
|
4644
4861
|
*/
|
|
4645
4862
|
xrange = (...args) => this.chain(new XRangeCommand(args, this.commandOptions));
|
|
4646
4863
|
/**
|
|
4647
4864
|
* @see https://redis.io/commands/xrevrange
|
|
4865
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xrevrange.mdx
|
|
4866
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4867
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4868
|
+
* to receive raw strings.
|
|
4869
|
+
* With automaticDeserialization: false, xrevrange returns [id, [field, value, ...]] entries instead,
|
|
4870
|
+
* such as [["1790341484470-0", ["text", "123"]]], and [] for a missing key.
|
|
4648
4871
|
*/
|
|
4649
4872
|
xrevrange = (...args) => this.chain(new XRevRangeCommand(args, this.commandOptions));
|
|
4650
4873
|
/**
|
|
4651
4874
|
* @see https://redis.io/commands/zcard
|
|
4875
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zcard.mdx
|
|
4652
4876
|
*/
|
|
4653
4877
|
zcard = (...args) => this.chain(new ZCardCommand(args, this.commandOptions));
|
|
4654
4878
|
/**
|
|
4655
4879
|
* @see https://redis.io/commands/zcount
|
|
4880
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zcount.mdx
|
|
4656
4881
|
*/
|
|
4657
4882
|
zcount = (...args) => this.chain(new ZCountCommand(args, this.commandOptions));
|
|
4658
4883
|
/**
|
|
4659
4884
|
* @see https://redis.io/commands/zincrby
|
|
4885
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zincrby.mdx
|
|
4660
4886
|
*/
|
|
4661
4887
|
zincrby = (key, increment, member) => this.chain(new ZIncrByCommand([key, increment, member], this.commandOptions));
|
|
4662
4888
|
/**
|
|
4663
4889
|
* @see https://redis.io/commands/zinterstore
|
|
4890
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zinterstore.mdx
|
|
4664
4891
|
*/
|
|
4665
4892
|
zinterstore = (...args) => this.chain(new ZInterStoreCommand(args, this.commandOptions));
|
|
4666
4893
|
/**
|
|
4667
4894
|
* @see https://redis.io/commands/zlexcount
|
|
4895
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zlexcount.mdx
|
|
4668
4896
|
*/
|
|
4669
4897
|
zlexcount = (...args) => this.chain(new ZLexCountCommand(args, this.commandOptions));
|
|
4670
4898
|
/**
|
|
4671
4899
|
* @see https://redis.io/commands/zmscore
|
|
4900
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zmscore.mdx
|
|
4672
4901
|
*/
|
|
4673
4902
|
zmscore = (...args) => this.chain(new ZMScoreCommand(args, this.commandOptions));
|
|
4674
4903
|
/**
|
|
4675
4904
|
* @see https://redis.io/commands/zpopmax
|
|
4905
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zpopmax.mdx
|
|
4676
4906
|
*/
|
|
4677
4907
|
zpopmax = (...args) => this.chain(new ZPopMaxCommand(args, this.commandOptions));
|
|
4678
4908
|
/**
|
|
4679
4909
|
* @see https://redis.io/commands/zpopmin
|
|
4910
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zpopmin.mdx
|
|
4680
4911
|
*/
|
|
4681
4912
|
zpopmin = (...args) => this.chain(new ZPopMinCommand(args, this.commandOptions));
|
|
4682
4913
|
/**
|
|
4683
4914
|
* @see https://redis.io/commands/zrange
|
|
4915
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zrange.mdx
|
|
4916
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
4917
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
4918
|
+
* to receive raw strings.
|
|
4684
4919
|
*/
|
|
4685
4920
|
zrange = (...args) => this.chain(new ZRangeCommand(args, this.commandOptions));
|
|
4686
4921
|
/**
|
|
4687
4922
|
* @see https://redis.io/commands/zrank
|
|
4923
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zrank.mdx
|
|
4688
4924
|
*/
|
|
4689
4925
|
zrank = (key, member) => this.chain(new ZRankCommand([key, member], this.commandOptions));
|
|
4690
4926
|
/**
|
|
4691
4927
|
* @see https://redis.io/commands/zrem
|
|
4928
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zrem.mdx
|
|
4692
4929
|
*/
|
|
4693
4930
|
zrem = (key, ...members) => this.chain(new ZRemCommand([key, ...members], this.commandOptions));
|
|
4694
4931
|
/**
|
|
4695
4932
|
* @see https://redis.io/commands/zremrangebylex
|
|
4933
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zremrangebylex.mdx
|
|
4696
4934
|
*/
|
|
4697
4935
|
zremrangebylex = (...args) => this.chain(new ZRemRangeByLexCommand(args, this.commandOptions));
|
|
4698
4936
|
/**
|
|
4699
4937
|
* @see https://redis.io/commands/zremrangebyrank
|
|
4938
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zremrangebyrank.mdx
|
|
4700
4939
|
*/
|
|
4701
4940
|
zremrangebyrank = (...args) => this.chain(new ZRemRangeByRankCommand(args, this.commandOptions));
|
|
4702
4941
|
/**
|
|
4703
4942
|
* @see https://redis.io/commands/zremrangebyscore
|
|
4943
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zremrangebyscore.mdx
|
|
4704
4944
|
*/
|
|
4705
4945
|
zremrangebyscore = (...args) => this.chain(new ZRemRangeByScoreCommand(args, this.commandOptions));
|
|
4706
4946
|
/**
|
|
4707
4947
|
* @see https://redis.io/commands/zrevrank
|
|
4948
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zrevrank.mdx
|
|
4708
4949
|
*/
|
|
4709
4950
|
zrevrank = (key, member) => this.chain(new ZRevRankCommand([key, member], this.commandOptions));
|
|
4710
4951
|
/**
|
|
4711
4952
|
* @see https://redis.io/commands/zscan
|
|
4953
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zscan.mdx
|
|
4712
4954
|
*/
|
|
4713
4955
|
zscan = (...args) => this.chain(new ZScanCommand(args, this.commandOptions));
|
|
4714
4956
|
/**
|
|
4715
4957
|
* @see https://redis.io/commands/zscore
|
|
4958
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zscore.mdx
|
|
4716
4959
|
*/
|
|
4717
4960
|
zscore = (key, member) => this.chain(new ZScoreCommand([key, member], this.commandOptions));
|
|
4718
4961
|
/**
|
|
4719
4962
|
* @see https://redis.io/commands/zunionstore
|
|
4963
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zunionstore.mdx
|
|
4720
4964
|
*/
|
|
4721
4965
|
zunionstore = (...args) => this.chain(new ZUnionStoreCommand(args, this.commandOptions));
|
|
4722
4966
|
/**
|
|
@@ -4730,70 +4974,87 @@ var Pipeline = class {
|
|
|
4730
4974
|
return {
|
|
4731
4975
|
/**
|
|
4732
4976
|
* @see https://redis.io/commands/json.arrappend
|
|
4977
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrappend.mdx
|
|
4733
4978
|
*/
|
|
4734
4979
|
arrappend: (...args) => this.chain(new JsonArrAppendCommand(args, this.commandOptions)),
|
|
4735
4980
|
/**
|
|
4736
4981
|
* @see https://redis.io/commands/json.arrindex
|
|
4982
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrindex.mdx
|
|
4737
4983
|
*/
|
|
4738
4984
|
arrindex: (...args) => this.chain(new JsonArrIndexCommand(args, this.commandOptions)),
|
|
4739
4985
|
/**
|
|
4740
4986
|
* @see https://redis.io/commands/json.arrinsert
|
|
4987
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrinsert.mdx
|
|
4741
4988
|
*/
|
|
4742
4989
|
arrinsert: (...args) => this.chain(new JsonArrInsertCommand(args, this.commandOptions)),
|
|
4743
4990
|
/**
|
|
4744
4991
|
* @see https://redis.io/commands/json.arrlen
|
|
4992
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrlen.mdx
|
|
4745
4993
|
*/
|
|
4746
4994
|
arrlen: (...args) => this.chain(new JsonArrLenCommand(args, this.commandOptions)),
|
|
4747
4995
|
/**
|
|
4748
4996
|
* @see https://redis.io/commands/json.arrpop
|
|
4997
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrpop.mdx
|
|
4749
4998
|
*/
|
|
4750
4999
|
arrpop: (...args) => this.chain(new JsonArrPopCommand(args, this.commandOptions)),
|
|
4751
5000
|
/**
|
|
4752
5001
|
* @see https://redis.io/commands/json.arrtrim
|
|
5002
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrtrim.mdx
|
|
4753
5003
|
*/
|
|
4754
5004
|
arrtrim: (...args) => this.chain(new JsonArrTrimCommand(args, this.commandOptions)),
|
|
4755
5005
|
/**
|
|
4756
5006
|
* @see https://redis.io/commands/json.clear
|
|
5007
|
+
* @see node_modules/@upstash/redis/docs/commands/json/clear.mdx
|
|
4757
5008
|
*/
|
|
4758
5009
|
clear: (...args) => this.chain(new JsonClearCommand(args, this.commandOptions)),
|
|
4759
5010
|
/**
|
|
4760
5011
|
* @see https://redis.io/commands/json.del
|
|
5012
|
+
* @see node_modules/@upstash/redis/docs/commands/json/del.mdx
|
|
4761
5013
|
*/
|
|
4762
5014
|
del: (...args) => this.chain(new JsonDelCommand(args, this.commandOptions)),
|
|
4763
5015
|
/**
|
|
4764
5016
|
* @see https://redis.io/commands/json.forget
|
|
5017
|
+
* @see node_modules/@upstash/redis/docs/commands/json/forget.mdx
|
|
4765
5018
|
*/
|
|
4766
5019
|
forget: (...args) => this.chain(new JsonForgetCommand(args, this.commandOptions)),
|
|
4767
5020
|
/**
|
|
4768
5021
|
* @see https://redis.io/commands/json.get
|
|
5022
|
+
* @see node_modules/@upstash/redis/docs/commands/json/get.mdx
|
|
4769
5023
|
*/
|
|
4770
5024
|
get: (...args) => this.chain(new JsonGetCommand(args, this.commandOptions)),
|
|
4771
5025
|
/**
|
|
4772
5026
|
* @see https://redis.io/commands/json.merge
|
|
5027
|
+
* @see node_modules/@upstash/redis/docs/commands/json/merge.mdx
|
|
4773
5028
|
*/
|
|
4774
5029
|
merge: (...args) => this.chain(new JsonMergeCommand(args, this.commandOptions)),
|
|
4775
5030
|
/**
|
|
4776
5031
|
* @see https://redis.io/commands/json.mget
|
|
5032
|
+
* @see node_modules/@upstash/redis/docs/commands/json/mget.mdx
|
|
4777
5033
|
*/
|
|
4778
5034
|
mget: (...args) => this.chain(new JsonMGetCommand(args, this.commandOptions)),
|
|
4779
5035
|
/**
|
|
4780
5036
|
* @see https://redis.io/commands/json.mset
|
|
5037
|
+
* @see node_modules/@upstash/redis/docs/commands/json/mset.mdx
|
|
4781
5038
|
*/
|
|
4782
5039
|
mset: (...args) => this.chain(new JsonMSetCommand(args, this.commandOptions)),
|
|
4783
5040
|
/**
|
|
4784
5041
|
* @see https://redis.io/commands/json.numincrby
|
|
5042
|
+
* @see node_modules/@upstash/redis/docs/commands/json/numincrby.mdx
|
|
4785
5043
|
*/
|
|
4786
5044
|
numincrby: (...args) => this.chain(new JsonNumIncrByCommand(args, this.commandOptions)),
|
|
4787
5045
|
/**
|
|
4788
5046
|
* @see https://redis.io/commands/json.nummultby
|
|
5047
|
+
* @see node_modules/@upstash/redis/docs/commands/json/nummultby.mdx
|
|
4789
5048
|
*/
|
|
4790
5049
|
nummultby: (...args) => this.chain(new JsonNumMultByCommand(args, this.commandOptions)),
|
|
4791
5050
|
/**
|
|
4792
5051
|
* @see https://redis.io/commands/json.objkeys
|
|
5052
|
+
* @see node_modules/@upstash/redis/docs/commands/json/objkeys.mdx
|
|
4793
5053
|
*/
|
|
4794
5054
|
objkeys: (...args) => this.chain(new JsonObjKeysCommand(args, this.commandOptions)),
|
|
4795
5055
|
/**
|
|
4796
5056
|
* @see https://redis.io/commands/json.objlen
|
|
5057
|
+
* @see node_modules/@upstash/redis/docs/commands/json/objlen.mdx
|
|
4797
5058
|
*/
|
|
4798
5059
|
objlen: (...args) => this.chain(new JsonObjLenCommand(args, this.commandOptions)),
|
|
4799
5060
|
/**
|
|
@@ -4802,22 +5063,27 @@ var Pipeline = class {
|
|
|
4802
5063
|
resp: (...args) => this.chain(new JsonRespCommand(args, this.commandOptions)),
|
|
4803
5064
|
/**
|
|
4804
5065
|
* @see https://redis.io/commands/json.set
|
|
5066
|
+
* @see node_modules/@upstash/redis/docs/commands/json/set.mdx
|
|
4805
5067
|
*/
|
|
4806
5068
|
set: (...args) => this.chain(new JsonSetCommand(args, this.commandOptions)),
|
|
4807
5069
|
/**
|
|
4808
5070
|
* @see https://redis.io/commands/json.strappend
|
|
5071
|
+
* @see node_modules/@upstash/redis/docs/commands/json/strappend.mdx
|
|
4809
5072
|
*/
|
|
4810
5073
|
strappend: (...args) => this.chain(new JsonStrAppendCommand(args, this.commandOptions)),
|
|
4811
5074
|
/**
|
|
4812
5075
|
* @see https://redis.io/commands/json.strlen
|
|
5076
|
+
* @see node_modules/@upstash/redis/docs/commands/json/strlen.mdx
|
|
4813
5077
|
*/
|
|
4814
5078
|
strlen: (...args) => this.chain(new JsonStrLenCommand(args, this.commandOptions)),
|
|
4815
5079
|
/**
|
|
4816
5080
|
* @see https://redis.io/commands/json.toggle
|
|
5081
|
+
* @see node_modules/@upstash/redis/docs/commands/json/toggle.mdx
|
|
4817
5082
|
*/
|
|
4818
5083
|
toggle: (...args) => this.chain(new JsonToggleCommand(args, this.commandOptions)),
|
|
4819
5084
|
/**
|
|
4820
5085
|
* @see https://redis.io/commands/json.type
|
|
5086
|
+
* @see node_modules/@upstash/redis/docs/commands/json/type.mdx
|
|
4821
5087
|
*/
|
|
4822
5088
|
type: (...args) => this.chain(new JsonTypeCommand(args, this.commandOptions))
|
|
4823
5089
|
};
|
|
@@ -4826,30 +5092,37 @@ var Pipeline = class {
|
|
|
4826
5092
|
return {
|
|
4827
5093
|
/**
|
|
4828
5094
|
* @see https://redis.io/docs/latest/commands/function-load/
|
|
5095
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/load.mdx
|
|
4829
5096
|
*/
|
|
4830
5097
|
load: (...args) => this.chain(new FunctionLoadCommand(args, this.commandOptions)),
|
|
4831
5098
|
/**
|
|
4832
5099
|
* @see https://redis.io/docs/latest/commands/function-list/
|
|
5100
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/list.mdx
|
|
4833
5101
|
*/
|
|
4834
5102
|
list: (...args) => this.chain(new FunctionListCommand(args, this.commandOptions)),
|
|
4835
5103
|
/**
|
|
4836
5104
|
* @see https://redis.io/docs/latest/commands/function-delete/
|
|
5105
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/delete.mdx
|
|
4837
5106
|
*/
|
|
4838
5107
|
delete: (...args) => this.chain(new FunctionDeleteCommand(args, this.commandOptions)),
|
|
4839
5108
|
/**
|
|
4840
5109
|
* @see https://redis.io/docs/latest/commands/function-flush/
|
|
5110
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/flush.mdx
|
|
4841
5111
|
*/
|
|
4842
5112
|
flush: () => this.chain(new FunctionFlushCommand(this.commandOptions)),
|
|
4843
5113
|
/**
|
|
4844
5114
|
* @see https://redis.io/docs/latest/commands/function-stats/
|
|
5115
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/stats.mdx
|
|
4845
5116
|
*/
|
|
4846
5117
|
stats: () => this.chain(new FunctionStatsCommand(this.commandOptions)),
|
|
4847
5118
|
/**
|
|
4848
5119
|
* @see https://redis.io/docs/latest/commands/fcall/
|
|
5120
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/call.mdx
|
|
4849
5121
|
*/
|
|
4850
5122
|
call: (...args) => this.chain(new FCallCommand(args, this.commandOptions)),
|
|
4851
5123
|
/**
|
|
4852
5124
|
* @see https://redis.io/docs/latest/commands/fcall_ro/
|
|
5125
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/call_ro.mdx
|
|
4853
5126
|
*/
|
|
4854
5127
|
callRo: (...args) => this.chain(new FCallRoCommand(args, this.commandOptions))
|
|
4855
5128
|
};
|
|
@@ -5033,70 +5306,87 @@ var Redis = class {
|
|
|
5033
5306
|
return {
|
|
5034
5307
|
/**
|
|
5035
5308
|
* @see https://redis.io/commands/json.arrappend
|
|
5309
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrappend.mdx
|
|
5036
5310
|
*/
|
|
5037
5311
|
arrappend: (...args) => new JsonArrAppendCommand(args, this.opts).exec(this.client),
|
|
5038
5312
|
/**
|
|
5039
5313
|
* @see https://redis.io/commands/json.arrindex
|
|
5314
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrindex.mdx
|
|
5040
5315
|
*/
|
|
5041
5316
|
arrindex: (...args) => new JsonArrIndexCommand(args, this.opts).exec(this.client),
|
|
5042
5317
|
/**
|
|
5043
5318
|
* @see https://redis.io/commands/json.arrinsert
|
|
5319
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrinsert.mdx
|
|
5044
5320
|
*/
|
|
5045
5321
|
arrinsert: (...args) => new JsonArrInsertCommand(args, this.opts).exec(this.client),
|
|
5046
5322
|
/**
|
|
5047
5323
|
* @see https://redis.io/commands/json.arrlen
|
|
5324
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrlen.mdx
|
|
5048
5325
|
*/
|
|
5049
5326
|
arrlen: (...args) => new JsonArrLenCommand(args, this.opts).exec(this.client),
|
|
5050
5327
|
/**
|
|
5051
5328
|
* @see https://redis.io/commands/json.arrpop
|
|
5329
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrpop.mdx
|
|
5052
5330
|
*/
|
|
5053
5331
|
arrpop: (...args) => new JsonArrPopCommand(args, this.opts).exec(this.client),
|
|
5054
5332
|
/**
|
|
5055
5333
|
* @see https://redis.io/commands/json.arrtrim
|
|
5334
|
+
* @see node_modules/@upstash/redis/docs/commands/json/arrtrim.mdx
|
|
5056
5335
|
*/
|
|
5057
5336
|
arrtrim: (...args) => new JsonArrTrimCommand(args, this.opts).exec(this.client),
|
|
5058
5337
|
/**
|
|
5059
5338
|
* @see https://redis.io/commands/json.clear
|
|
5339
|
+
* @see node_modules/@upstash/redis/docs/commands/json/clear.mdx
|
|
5060
5340
|
*/
|
|
5061
5341
|
clear: (...args) => new JsonClearCommand(args, this.opts).exec(this.client),
|
|
5062
5342
|
/**
|
|
5063
5343
|
* @see https://redis.io/commands/json.del
|
|
5344
|
+
* @see node_modules/@upstash/redis/docs/commands/json/del.mdx
|
|
5064
5345
|
*/
|
|
5065
5346
|
del: (...args) => new JsonDelCommand(args, this.opts).exec(this.client),
|
|
5066
5347
|
/**
|
|
5067
5348
|
* @see https://redis.io/commands/json.forget
|
|
5349
|
+
* @see node_modules/@upstash/redis/docs/commands/json/forget.mdx
|
|
5068
5350
|
*/
|
|
5069
5351
|
forget: (...args) => new JsonForgetCommand(args, this.opts).exec(this.client),
|
|
5070
5352
|
/**
|
|
5071
5353
|
* @see https://redis.io/commands/json.get
|
|
5354
|
+
* @see node_modules/@upstash/redis/docs/commands/json/get.mdx
|
|
5072
5355
|
*/
|
|
5073
5356
|
get: (...args) => new JsonGetCommand(args, this.opts).exec(this.client),
|
|
5074
5357
|
/**
|
|
5075
5358
|
* @see https://redis.io/commands/json.merge
|
|
5359
|
+
* @see node_modules/@upstash/redis/docs/commands/json/merge.mdx
|
|
5076
5360
|
*/
|
|
5077
5361
|
merge: (...args) => new JsonMergeCommand(args, this.opts).exec(this.client),
|
|
5078
5362
|
/**
|
|
5079
5363
|
* @see https://redis.io/commands/json.mget
|
|
5364
|
+
* @see node_modules/@upstash/redis/docs/commands/json/mget.mdx
|
|
5080
5365
|
*/
|
|
5081
5366
|
mget: (...args) => new JsonMGetCommand(args, this.opts).exec(this.client),
|
|
5082
5367
|
/**
|
|
5083
5368
|
* @see https://redis.io/commands/json.mset
|
|
5369
|
+
* @see node_modules/@upstash/redis/docs/commands/json/mset.mdx
|
|
5084
5370
|
*/
|
|
5085
5371
|
mset: (...args) => new JsonMSetCommand(args, this.opts).exec(this.client),
|
|
5086
5372
|
/**
|
|
5087
5373
|
* @see https://redis.io/commands/json.numincrby
|
|
5374
|
+
* @see node_modules/@upstash/redis/docs/commands/json/numincrby.mdx
|
|
5088
5375
|
*/
|
|
5089
5376
|
numincrby: (...args) => new JsonNumIncrByCommand(args, this.opts).exec(this.client),
|
|
5090
5377
|
/**
|
|
5091
5378
|
* @see https://redis.io/commands/json.nummultby
|
|
5379
|
+
* @see node_modules/@upstash/redis/docs/commands/json/nummultby.mdx
|
|
5092
5380
|
*/
|
|
5093
5381
|
nummultby: (...args) => new JsonNumMultByCommand(args, this.opts).exec(this.client),
|
|
5094
5382
|
/**
|
|
5095
5383
|
* @see https://redis.io/commands/json.objkeys
|
|
5384
|
+
* @see node_modules/@upstash/redis/docs/commands/json/objkeys.mdx
|
|
5096
5385
|
*/
|
|
5097
5386
|
objkeys: (...args) => new JsonObjKeysCommand(args, this.opts).exec(this.client),
|
|
5098
5387
|
/**
|
|
5099
5388
|
* @see https://redis.io/commands/json.objlen
|
|
5389
|
+
* @see node_modules/@upstash/redis/docs/commands/json/objlen.mdx
|
|
5100
5390
|
*/
|
|
5101
5391
|
objlen: (...args) => new JsonObjLenCommand(args, this.opts).exec(this.client),
|
|
5102
5392
|
/**
|
|
@@ -5105,22 +5395,27 @@ var Redis = class {
|
|
|
5105
5395
|
resp: (...args) => new JsonRespCommand(args, this.opts).exec(this.client),
|
|
5106
5396
|
/**
|
|
5107
5397
|
* @see https://redis.io/commands/json.set
|
|
5398
|
+
* @see node_modules/@upstash/redis/docs/commands/json/set.mdx
|
|
5108
5399
|
*/
|
|
5109
5400
|
set: (...args) => new JsonSetCommand(args, this.opts).exec(this.client),
|
|
5110
5401
|
/**
|
|
5111
5402
|
* @see https://redis.io/commands/json.strappend
|
|
5403
|
+
* @see node_modules/@upstash/redis/docs/commands/json/strappend.mdx
|
|
5112
5404
|
*/
|
|
5113
5405
|
strappend: (...args) => new JsonStrAppendCommand(args, this.opts).exec(this.client),
|
|
5114
5406
|
/**
|
|
5115
5407
|
* @see https://redis.io/commands/json.strlen
|
|
5408
|
+
* @see node_modules/@upstash/redis/docs/commands/json/strlen.mdx
|
|
5116
5409
|
*/
|
|
5117
5410
|
strlen: (...args) => new JsonStrLenCommand(args, this.opts).exec(this.client),
|
|
5118
5411
|
/**
|
|
5119
5412
|
* @see https://redis.io/commands/json.toggle
|
|
5413
|
+
* @see node_modules/@upstash/redis/docs/commands/json/toggle.mdx
|
|
5120
5414
|
*/
|
|
5121
5415
|
toggle: (...args) => new JsonToggleCommand(args, this.opts).exec(this.client),
|
|
5122
5416
|
/**
|
|
5123
5417
|
* @see https://redis.io/commands/json.type
|
|
5418
|
+
* @see node_modules/@upstash/redis/docs/commands/json/type.mdx
|
|
5124
5419
|
*/
|
|
5125
5420
|
type: (...args) => new JsonTypeCommand(args, this.opts).exec(this.client)
|
|
5126
5421
|
};
|
|
@@ -5129,32 +5424,39 @@ var Redis = class {
|
|
|
5129
5424
|
return {
|
|
5130
5425
|
/**
|
|
5131
5426
|
* @see https://redis.io/docs/latest/commands/function-load/
|
|
5427
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/load.mdx
|
|
5132
5428
|
*/
|
|
5133
5429
|
load: (...args) => new FunctionLoadCommand(args, this.opts).exec(this.client),
|
|
5134
5430
|
/**
|
|
5135
5431
|
* @see https://redis.io/docs/latest/commands/function-list/
|
|
5432
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/list.mdx
|
|
5136
5433
|
*/
|
|
5137
5434
|
list: (...args) => new FunctionListCommand(args, this.opts).exec(this.client),
|
|
5138
5435
|
/**
|
|
5139
5436
|
* @see https://redis.io/docs/latest/commands/function-delete/
|
|
5437
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/delete.mdx
|
|
5140
5438
|
*/
|
|
5141
5439
|
delete: (...args) => new FunctionDeleteCommand(args, this.opts).exec(this.client),
|
|
5142
5440
|
/**
|
|
5143
5441
|
* @see https://redis.io/docs/latest/commands/function-flush/
|
|
5442
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/flush.mdx
|
|
5144
5443
|
*/
|
|
5145
5444
|
flush: () => new FunctionFlushCommand(this.opts).exec(this.client),
|
|
5146
5445
|
/**
|
|
5147
5446
|
* @see https://redis.io/docs/latest/commands/function-stats/
|
|
5447
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/stats.mdx
|
|
5148
5448
|
*
|
|
5149
5449
|
* Note: `running_script` field is not supported and therefore not included in the type.
|
|
5150
5450
|
*/
|
|
5151
5451
|
stats: () => new FunctionStatsCommand(this.opts).exec(this.client),
|
|
5152
5452
|
/**
|
|
5153
5453
|
* @see https://redis.io/docs/latest/commands/fcall/
|
|
5454
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/call.mdx
|
|
5154
5455
|
*/
|
|
5155
5456
|
call: (...args) => new FCallCommand(args, this.opts).exec(this.client),
|
|
5156
5457
|
/**
|
|
5157
5458
|
* @see https://redis.io/docs/latest/commands/fcall_ro/
|
|
5459
|
+
* @see node_modules/@upstash/redis/docs/commands/functions/call_ro.mdx
|
|
5158
5460
|
*/
|
|
5159
5461
|
callRo: (...args) => new FCallRoCommand(args, this.opts).exec(this.client)
|
|
5160
5462
|
};
|
|
@@ -5185,6 +5487,10 @@ var Redis = class {
|
|
|
5185
5487
|
* entire script to the server. If the script is loaded on the server, it tries again by sending
|
|
5186
5488
|
* the entire script. Afterwards, the script is cached on the server.
|
|
5187
5489
|
*
|
|
5490
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5491
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5492
|
+
* to receive raw strings.
|
|
5493
|
+
*
|
|
5188
5494
|
* @param script - The script to create
|
|
5189
5495
|
* @param opts - Optional options to pass to the script `{ readonly?: boolean }`
|
|
5190
5496
|
* @returns A new script
|
|
@@ -5301,96 +5607,119 @@ var Redis = class {
|
|
|
5301
5607
|
bitfield = (...args) => new BitFieldCommand(args, this.client, this.opts);
|
|
5302
5608
|
/**
|
|
5303
5609
|
* @see https://redis.io/commands/append
|
|
5610
|
+
* @see node_modules/@upstash/redis/docs/commands/string/append.mdx
|
|
5304
5611
|
*/
|
|
5305
5612
|
append = (...args) => new AppendCommand(args, this.opts).exec(this.client);
|
|
5306
5613
|
/**
|
|
5307
5614
|
* @see https://upstash.com/docs/redis/commands/array/arcount
|
|
5615
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arcount.mdx
|
|
5308
5616
|
*/
|
|
5309
5617
|
arcount = (...args) => new ArCountCommand(args, this.opts).exec(this.client);
|
|
5310
5618
|
/**
|
|
5311
5619
|
* @see https://upstash.com/docs/redis/commands/array/ardel
|
|
5620
|
+
* @see node_modules/@upstash/redis/docs/commands/array/ardel.mdx
|
|
5312
5621
|
*/
|
|
5313
5622
|
ardel = (...args) => new ArDelCommand(args, this.opts).exec(this.client);
|
|
5314
5623
|
/**
|
|
5315
5624
|
* @see https://upstash.com/docs/redis/commands/array/ardelrange
|
|
5625
|
+
* @see node_modules/@upstash/redis/docs/commands/array/ardelrange.mdx
|
|
5316
5626
|
*/
|
|
5317
5627
|
ardelrange = (...args) => new ArDelRangeCommand(args, this.opts).exec(this.client);
|
|
5318
5628
|
/**
|
|
5319
5629
|
* @see https://upstash.com/docs/redis/commands/array/arget
|
|
5630
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arget.mdx
|
|
5320
5631
|
*/
|
|
5321
5632
|
arget = (...args) => new ArGetCommand(args, this.opts).exec(this.client);
|
|
5322
5633
|
/**
|
|
5323
5634
|
* @see https://upstash.com/docs/redis/commands/array/argetrange
|
|
5635
|
+
* @see node_modules/@upstash/redis/docs/commands/array/argetrange.mdx
|
|
5324
5636
|
*/
|
|
5325
5637
|
argetrange = (...args) => new ArGetRangeCommand(args, this.opts).exec(this.client);
|
|
5326
5638
|
/**
|
|
5327
5639
|
* @see https://upstash.com/docs/redis/commands/array/argrep
|
|
5640
|
+
* @see node_modules/@upstash/redis/docs/commands/array/argrep.mdx
|
|
5328
5641
|
*/
|
|
5329
5642
|
argrep = (key, start, end, opts) => new ArGrepCommand([key, start, end, opts], this.opts).exec(this.client);
|
|
5330
5643
|
/**
|
|
5331
5644
|
* @see https://upstash.com/docs/redis/commands/array/arinfo
|
|
5645
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arinfo.mdx
|
|
5332
5646
|
*/
|
|
5333
5647
|
arinfo = (...args) => new ArInfoCommand(args, this.opts).exec(this.client);
|
|
5334
5648
|
/**
|
|
5335
5649
|
* @see https://upstash.com/docs/redis/commands/array/arinsert
|
|
5650
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arinsert.mdx
|
|
5336
5651
|
*/
|
|
5337
5652
|
arinsert = (key, ...values) => new ArInsertCommand([key, ...values], this.opts).exec(this.client);
|
|
5338
5653
|
/**
|
|
5339
5654
|
* @see https://upstash.com/docs/redis/commands/array/arlastitems
|
|
5655
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arlastitems.mdx
|
|
5340
5656
|
*/
|
|
5341
5657
|
arlastitems = (...args) => new ArLastItemsCommand(args, this.opts).exec(this.client);
|
|
5342
5658
|
/**
|
|
5343
5659
|
* @see https://upstash.com/docs/redis/commands/array/arlen
|
|
5660
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arlen.mdx
|
|
5344
5661
|
*/
|
|
5345
5662
|
arlen = (...args) => new ArLenCommand(args, this.opts).exec(this.client);
|
|
5346
5663
|
/**
|
|
5347
5664
|
* @see https://upstash.com/docs/redis/commands/array/armget
|
|
5665
|
+
* @see node_modules/@upstash/redis/docs/commands/array/armget.mdx
|
|
5348
5666
|
*/
|
|
5349
5667
|
armget = (...args) => new ArMGetCommand(args, this.opts).exec(this.client);
|
|
5350
5668
|
/**
|
|
5351
5669
|
* @see https://upstash.com/docs/redis/commands/array/armset
|
|
5670
|
+
* @see node_modules/@upstash/redis/docs/commands/array/armset.mdx
|
|
5352
5671
|
*/
|
|
5353
5672
|
armset = (key, values) => new ArMSetCommand([key, values], this.opts).exec(this.client);
|
|
5354
5673
|
/**
|
|
5355
5674
|
* @see https://upstash.com/docs/redis/commands/array/arnext
|
|
5675
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arnext.mdx
|
|
5356
5676
|
*/
|
|
5357
5677
|
arnext = (...args) => new ArNextCommand(args, this.opts).exec(this.client);
|
|
5358
5678
|
/**
|
|
5359
5679
|
* @see https://upstash.com/docs/redis/commands/array/arop
|
|
5680
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arop.mdx
|
|
5360
5681
|
*/
|
|
5361
5682
|
arop = (key, start, end, operation) => new ArOpCommand([key, start, end, operation], this.opts).exec(this.client);
|
|
5362
5683
|
/**
|
|
5363
5684
|
* @see https://upstash.com/docs/redis/commands/array/arring
|
|
5685
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arring.mdx
|
|
5364
5686
|
*/
|
|
5365
5687
|
arring = (key, size, ...values) => new ArRingCommand([key, size, ...values], this.opts).exec(this.client);
|
|
5366
5688
|
/**
|
|
5367
5689
|
* @see https://upstash.com/docs/redis/commands/array/arscan
|
|
5690
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arscan.mdx
|
|
5368
5691
|
*/
|
|
5369
5692
|
arscan = (...args) => new ArScanCommand(args, this.opts).exec(this.client);
|
|
5370
5693
|
/**
|
|
5371
5694
|
* @see https://upstash.com/docs/redis/commands/array/arseek
|
|
5695
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arseek.mdx
|
|
5372
5696
|
*/
|
|
5373
5697
|
arseek = (...args) => new ArSeekCommand(args, this.opts).exec(this.client);
|
|
5374
5698
|
/**
|
|
5375
5699
|
* @see https://upstash.com/docs/redis/commands/array/arset
|
|
5700
|
+
* @see node_modules/@upstash/redis/docs/commands/array/arset.mdx
|
|
5376
5701
|
*/
|
|
5377
5702
|
arset = (key, index, ...values) => new ArSetCommand([key, index, ...values], this.opts).exec(this.client);
|
|
5378
5703
|
/**
|
|
5379
5704
|
* @see https://redis.io/commands/bitcount
|
|
5705
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/bitcount.mdx
|
|
5380
5706
|
*/
|
|
5381
5707
|
bitcount = (...args) => new BitCountCommand(args, this.opts).exec(this.client);
|
|
5382
5708
|
/**
|
|
5383
5709
|
* @see https://redis.io/commands/bitop
|
|
5710
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/bitop.mdx
|
|
5384
5711
|
*/
|
|
5385
5712
|
bitop = (op, destinationKey, sourceKey, ...sourceKeys) => new BitOpCommand([op, destinationKey, sourceKey, ...sourceKeys], this.opts).exec(
|
|
5386
5713
|
this.client
|
|
5387
5714
|
);
|
|
5388
5715
|
/**
|
|
5389
5716
|
* @see https://redis.io/commands/bitpos
|
|
5717
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/bitpos.mdx
|
|
5390
5718
|
*/
|
|
5391
5719
|
bitpos = (...args) => new BitPosCommand(args, this.opts).exec(this.client);
|
|
5392
5720
|
/**
|
|
5393
5721
|
* @see https://redis.io/commands/client-setinfo
|
|
5722
|
+
* @see node_modules/@upstash/redis/docs/commands/connection/client_setinfo.mdx
|
|
5394
5723
|
*/
|
|
5395
5724
|
clientSetinfo = (...args) => new ClientSetInfoCommand(args, this.opts).exec(this.client);
|
|
5396
5725
|
/**
|
|
@@ -5399,38 +5728,59 @@ var Redis = class {
|
|
|
5399
5728
|
copy = (...args) => new CopyCommand(args, this.opts).exec(this.client);
|
|
5400
5729
|
/**
|
|
5401
5730
|
* @see https://redis.io/commands/dbsize
|
|
5731
|
+
* @see node_modules/@upstash/redis/docs/commands/server/dbsize.mdx
|
|
5402
5732
|
*/
|
|
5403
5733
|
dbsize = () => new DBSizeCommand(this.opts).exec(this.client);
|
|
5404
5734
|
/**
|
|
5405
5735
|
* @see https://redis.io/commands/decr
|
|
5736
|
+
* @see node_modules/@upstash/redis/docs/commands/string/decr.mdx
|
|
5406
5737
|
*/
|
|
5407
5738
|
decr = (...args) => new DecrCommand(args, this.opts).exec(this.client);
|
|
5408
5739
|
/**
|
|
5409
5740
|
* @see https://redis.io/commands/decrby
|
|
5741
|
+
* @see node_modules/@upstash/redis/docs/commands/string/decrby.mdx
|
|
5410
5742
|
*/
|
|
5411
5743
|
decrby = (...args) => new DecrByCommand(args, this.opts).exec(this.client);
|
|
5412
5744
|
/**
|
|
5413
5745
|
* @see https://redis.io/commands/del
|
|
5746
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/del.mdx
|
|
5414
5747
|
*/
|
|
5415
5748
|
del = (...args) => new DelCommand(args, this.opts).exec(this.client);
|
|
5416
5749
|
/**
|
|
5417
5750
|
* @see https://redis.io/commands/echo
|
|
5751
|
+
* @see node_modules/@upstash/redis/docs/commands/auth/echo.mdx
|
|
5418
5752
|
*/
|
|
5419
5753
|
echo = (...args) => new EchoCommand(args, this.opts).exec(this.client);
|
|
5420
5754
|
/**
|
|
5421
5755
|
* @see https://redis.io/commands/eval_ro
|
|
5756
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/eval_ro.mdx
|
|
5757
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5758
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5759
|
+
* to receive raw strings.
|
|
5422
5760
|
*/
|
|
5423
5761
|
evalRo = (...args) => new EvalROCommand(args, this.opts).exec(this.client);
|
|
5424
5762
|
/**
|
|
5425
5763
|
* @see https://redis.io/commands/eval
|
|
5764
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/eval.mdx
|
|
5765
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5766
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5767
|
+
* to receive raw strings.
|
|
5426
5768
|
*/
|
|
5427
5769
|
eval = (...args) => new EvalCommand(args, this.opts).exec(this.client);
|
|
5428
5770
|
/**
|
|
5429
5771
|
* @see https://redis.io/commands/evalsha_ro
|
|
5772
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/evalsha_ro.mdx
|
|
5773
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5774
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5775
|
+
* to receive raw strings.
|
|
5430
5776
|
*/
|
|
5431
5777
|
evalshaRo = (...args) => new EvalshaROCommand(args, this.opts).exec(this.client);
|
|
5432
5778
|
/**
|
|
5433
5779
|
* @see https://redis.io/commands/evalsha
|
|
5780
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/evalsha.mdx
|
|
5781
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5782
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5783
|
+
* to receive raw strings.
|
|
5434
5784
|
*/
|
|
5435
5785
|
evalsha = (...args) => new EvalshaCommand(args, this.opts).exec(this.client);
|
|
5436
5786
|
/**
|
|
@@ -5439,22 +5789,27 @@ var Redis = class {
|
|
|
5439
5789
|
exec = (args) => new ExecCommand(args, this.opts).exec(this.client);
|
|
5440
5790
|
/**
|
|
5441
5791
|
* @see https://redis.io/commands/exists
|
|
5792
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/exists.mdx
|
|
5442
5793
|
*/
|
|
5443
5794
|
exists = (...args) => new ExistsCommand(args, this.opts).exec(this.client);
|
|
5444
5795
|
/**
|
|
5445
5796
|
* @see https://redis.io/commands/expire
|
|
5797
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/expire.mdx
|
|
5446
5798
|
*/
|
|
5447
5799
|
expire = (...args) => new ExpireCommand(args, this.opts).exec(this.client);
|
|
5448
5800
|
/**
|
|
5449
5801
|
* @see https://redis.io/commands/expireat
|
|
5802
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/expireat.mdx
|
|
5450
5803
|
*/
|
|
5451
5804
|
expireat = (...args) => new ExpireAtCommand(args, this.opts).exec(this.client);
|
|
5452
5805
|
/**
|
|
5453
5806
|
* @see https://redis.io/commands/flushall
|
|
5807
|
+
* @see node_modules/@upstash/redis/docs/commands/server/flushall.mdx
|
|
5454
5808
|
*/
|
|
5455
5809
|
flushall = (args) => new FlushAllCommand(args, this.opts).exec(this.client);
|
|
5456
5810
|
/**
|
|
5457
5811
|
* @see https://redis.io/commands/flushdb
|
|
5812
|
+
* @see node_modules/@upstash/redis/docs/commands/server/flushdb.mdx
|
|
5458
5813
|
*/
|
|
5459
5814
|
flushdb = (...args) => new FlushDBCommand(args, this.opts).exec(this.client);
|
|
5460
5815
|
/**
|
|
@@ -5483,106 +5838,166 @@ var Redis = class {
|
|
|
5483
5838
|
geosearchstore = (...args) => new GeoSearchStoreCommand(args, this.opts).exec(this.client);
|
|
5484
5839
|
/**
|
|
5485
5840
|
* @see https://redis.io/commands/get
|
|
5841
|
+
* @see node_modules/@upstash/redis/docs/commands/string/get.mdx
|
|
5842
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5843
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5844
|
+
* to receive raw strings.
|
|
5486
5845
|
*/
|
|
5487
5846
|
get = (...args) => new GetCommand(args, this.opts).exec(this.client);
|
|
5488
5847
|
/**
|
|
5489
5848
|
* @see https://redis.io/commands/getbit
|
|
5849
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/getbit.mdx
|
|
5490
5850
|
*/
|
|
5491
5851
|
getbit = (...args) => new GetBitCommand(args, this.opts).exec(this.client);
|
|
5492
5852
|
/**
|
|
5493
5853
|
* @see https://redis.io/commands/getdel
|
|
5854
|
+
* @see node_modules/@upstash/redis/docs/commands/string/getdel.mdx
|
|
5855
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5856
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5857
|
+
* to receive raw strings.
|
|
5494
5858
|
*/
|
|
5495
5859
|
getdel = (...args) => new GetDelCommand(args, this.opts).exec(this.client);
|
|
5496
5860
|
/**
|
|
5497
5861
|
* @see https://redis.io/commands/getex
|
|
5862
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5863
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5864
|
+
* to receive raw strings.
|
|
5498
5865
|
*/
|
|
5499
5866
|
getex = (...args) => new GetExCommand(args, this.opts).exec(this.client);
|
|
5500
5867
|
/**
|
|
5501
5868
|
* @see https://redis.io/commands/getrange
|
|
5869
|
+
* @see node_modules/@upstash/redis/docs/commands/string/getrange.mdx
|
|
5502
5870
|
*/
|
|
5503
5871
|
getrange = (...args) => new GetRangeCommand(args, this.opts).exec(this.client);
|
|
5504
5872
|
/**
|
|
5505
5873
|
* @see https://redis.io/commands/getset
|
|
5874
|
+
* @see node_modules/@upstash/redis/docs/commands/string/getset.mdx
|
|
5875
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5876
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5877
|
+
* to receive raw strings.
|
|
5506
5878
|
*/
|
|
5507
5879
|
getset = (key, value) => new GetSetCommand([key, value], this.opts).exec(this.client);
|
|
5508
5880
|
/**
|
|
5509
5881
|
* @see https://redis.io/commands/hdel
|
|
5882
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hdel.mdx
|
|
5510
5883
|
*/
|
|
5511
5884
|
hdel = (...args) => new HDelCommand(args, this.opts).exec(this.client);
|
|
5512
5885
|
/**
|
|
5513
5886
|
* @see https://redis.io/commands/hexists
|
|
5887
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hexists.mdx
|
|
5514
5888
|
*/
|
|
5515
5889
|
hexists = (...args) => new HExistsCommand(args, this.opts).exec(this.client);
|
|
5516
5890
|
/**
|
|
5517
5891
|
* @see https://redis.io/commands/hexpire
|
|
5892
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hexpire.mdx
|
|
5518
5893
|
*/
|
|
5519
5894
|
hexpire = (...args) => new HExpireCommand(args, this.opts).exec(this.client);
|
|
5520
5895
|
/**
|
|
5521
5896
|
* @see https://redis.io/commands/hexpireat
|
|
5897
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hexpireat.mdx
|
|
5522
5898
|
*/
|
|
5523
5899
|
hexpireat = (...args) => new HExpireAtCommand(args, this.opts).exec(this.client);
|
|
5524
5900
|
/**
|
|
5525
5901
|
* @see https://redis.io/commands/hexpiretime
|
|
5902
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hexpiretime.mdx
|
|
5526
5903
|
*/
|
|
5527
5904
|
hexpiretime = (...args) => new HExpireTimeCommand(args, this.opts).exec(this.client);
|
|
5528
5905
|
/**
|
|
5529
5906
|
* @see https://redis.io/commands/httl
|
|
5907
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/httl.mdx
|
|
5530
5908
|
*/
|
|
5531
5909
|
httl = (...args) => new HTtlCommand(args, this.opts).exec(this.client);
|
|
5532
5910
|
/**
|
|
5533
5911
|
* @see https://redis.io/commands/hpexpire
|
|
5912
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpexpire.mdx
|
|
5534
5913
|
*/
|
|
5535
5914
|
hpexpire = (...args) => new HPExpireCommand(args, this.opts).exec(this.client);
|
|
5536
5915
|
/**
|
|
5537
5916
|
* @see https://redis.io/commands/hpexpireat
|
|
5917
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpexpireat.mdx
|
|
5538
5918
|
*/
|
|
5539
5919
|
hpexpireat = (...args) => new HPExpireAtCommand(args, this.opts).exec(this.client);
|
|
5540
5920
|
/**
|
|
5541
5921
|
* @see https://redis.io/commands/hpexpiretime
|
|
5922
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpexpiretime.mdx
|
|
5542
5923
|
*/
|
|
5543
5924
|
hpexpiretime = (...args) => new HPExpireTimeCommand(args, this.opts).exec(this.client);
|
|
5544
5925
|
/**
|
|
5545
5926
|
* @see https://redis.io/commands/hpttl
|
|
5927
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpttl.mdx
|
|
5546
5928
|
*/
|
|
5547
5929
|
hpttl = (...args) => new HPTtlCommand(args, this.opts).exec(this.client);
|
|
5548
5930
|
/**
|
|
5549
5931
|
* @see https://redis.io/commands/hpersist
|
|
5932
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hpersist.mdx
|
|
5550
5933
|
*/
|
|
5551
5934
|
hpersist = (...args) => new HPersistCommand(args, this.opts).exec(this.client);
|
|
5552
5935
|
/**
|
|
5553
5936
|
* @see https://redis.io/commands/hget
|
|
5937
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hget.mdx
|
|
5938
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5939
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5940
|
+
* to receive raw strings.
|
|
5554
5941
|
*/
|
|
5555
5942
|
hget = (...args) => new HGetCommand(args, this.opts).exec(this.client);
|
|
5556
5943
|
/**
|
|
5557
5944
|
* @see https://redis.io/commands/hgetall
|
|
5945
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hgetall.mdx
|
|
5946
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5947
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5948
|
+
* to receive raw strings.
|
|
5949
|
+
* With automaticDeserialization: false, hgetall returns a flat array instead, such as
|
|
5950
|
+
* ["text", "123", "version", "1"], and [] for a missing key.
|
|
5558
5951
|
*/
|
|
5559
5952
|
hgetall = (...args) => new HGetAllCommand(args, this.opts).exec(this.client);
|
|
5560
5953
|
/**
|
|
5561
5954
|
* @see https://redis.io/commands/hgetdel
|
|
5955
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hgetdel.mdx
|
|
5956
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5957
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5958
|
+
* to receive raw strings.
|
|
5959
|
+
* With automaticDeserialization: false, hgetdel returns an array of values in field order instead,
|
|
5960
|
+
* such as ["123", null], with null for each field when the key is missing.
|
|
5562
5961
|
*/
|
|
5563
5962
|
hgetdel = (...args) => new HGetDelCommand(args, this.opts).exec(this.client);
|
|
5564
5963
|
/**
|
|
5565
5964
|
* @see https://redis.io/commands/hgetex
|
|
5965
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hgetex.mdx
|
|
5966
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5967
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5968
|
+
* to receive raw strings.
|
|
5969
|
+
* With automaticDeserialization: false, hgetex returns an array of values in field order instead,
|
|
5970
|
+
* such as ["123", null], with null for each field when the key is missing.
|
|
5566
5971
|
*/
|
|
5567
5972
|
hgetex = (...args) => new HGetExCommand(args, this.opts).exec(this.client);
|
|
5568
5973
|
/**
|
|
5569
5974
|
* @see https://redis.io/commands/hincrby
|
|
5975
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hincrby.mdx
|
|
5570
5976
|
*/
|
|
5571
5977
|
hincrby = (...args) => new HIncrByCommand(args, this.opts).exec(this.client);
|
|
5572
5978
|
/**
|
|
5573
5979
|
* @see https://redis.io/commands/hincrbyfloat
|
|
5980
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hincrbyfloat.mdx
|
|
5574
5981
|
*/
|
|
5575
5982
|
hincrbyfloat = (...args) => new HIncrByFloatCommand(args, this.opts).exec(this.client);
|
|
5576
5983
|
/**
|
|
5577
5984
|
* @see https://redis.io/commands/hkeys
|
|
5985
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hkeys.mdx
|
|
5578
5986
|
*/
|
|
5579
5987
|
hkeys = (...args) => new HKeysCommand(args, this.opts).exec(this.client);
|
|
5580
5988
|
/**
|
|
5581
5989
|
* @see https://redis.io/commands/hlen
|
|
5990
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hlen.mdx
|
|
5582
5991
|
*/
|
|
5583
5992
|
hlen = (...args) => new HLenCommand(args, this.opts).exec(this.client);
|
|
5584
5993
|
/**
|
|
5585
5994
|
* @see https://redis.io/commands/hmget
|
|
5995
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hmget.mdx
|
|
5996
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
5997
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
5998
|
+
* to receive raw strings.
|
|
5999
|
+
* With automaticDeserialization: false, hmget returns an array of values in field order instead,
|
|
6000
|
+
* such as ["123", null], with null for each field when the key is missing.
|
|
5586
6001
|
*/
|
|
5587
6002
|
hmget = (...args) => new HMGetCommand(args, this.opts).exec(this.client);
|
|
5588
6003
|
/**
|
|
@@ -5591,66 +6006,88 @@ var Redis = class {
|
|
|
5591
6006
|
hmset = (key, kv) => new HMSetCommand([key, kv], this.opts).exec(this.client);
|
|
5592
6007
|
/**
|
|
5593
6008
|
* @see https://redis.io/commands/hrandfield
|
|
6009
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hrandfield.mdx
|
|
5594
6010
|
*/
|
|
5595
6011
|
hrandfield = (key, count, withValues) => new HRandFieldCommand([key, count, withValues], this.opts).exec(this.client);
|
|
5596
6012
|
/**
|
|
5597
6013
|
* @see https://redis.io/commands/hscan
|
|
6014
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hscan.mdx
|
|
5598
6015
|
*/
|
|
5599
6016
|
hscan = (...args) => new HScanCommand(args, this.opts).exec(this.client);
|
|
5600
6017
|
/**
|
|
5601
6018
|
* @see https://redis.io/commands/hset
|
|
6019
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hset.mdx
|
|
5602
6020
|
*/
|
|
5603
6021
|
hset = (key, kv) => new HSetCommand([key, kv], this.opts).exec(this.client);
|
|
5604
6022
|
/**
|
|
5605
6023
|
* @see https://redis.io/commands/hsetex
|
|
6024
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hsetex.mdx
|
|
5606
6025
|
*/
|
|
5607
6026
|
hsetex = (...args) => new HSetExCommand(args, this.opts).exec(this.client);
|
|
5608
6027
|
/**
|
|
5609
6028
|
* @see https://redis.io/commands/hsetnx
|
|
6029
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hsetnx.mdx
|
|
5610
6030
|
*/
|
|
5611
6031
|
hsetnx = (key, field, value) => new HSetNXCommand([key, field, value], this.opts).exec(this.client);
|
|
5612
6032
|
/**
|
|
5613
6033
|
* @see https://redis.io/commands/hstrlen
|
|
6034
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hstrlen.mdx
|
|
5614
6035
|
*/
|
|
5615
6036
|
hstrlen = (...args) => new HStrLenCommand(args, this.opts).exec(this.client);
|
|
5616
6037
|
/**
|
|
5617
6038
|
* @see https://redis.io/commands/hvals
|
|
6039
|
+
* @see node_modules/@upstash/redis/docs/commands/hash/hvals.mdx
|
|
5618
6040
|
*/
|
|
5619
6041
|
hvals = (...args) => new HValsCommand(args, this.opts).exec(this.client);
|
|
5620
6042
|
/**
|
|
5621
6043
|
* @see https://redis.io/commands/incr
|
|
6044
|
+
* @see node_modules/@upstash/redis/docs/commands/string/incr.mdx
|
|
5622
6045
|
*/
|
|
5623
6046
|
incr = (...args) => new IncrCommand(args, this.opts).exec(this.client);
|
|
5624
6047
|
/**
|
|
5625
6048
|
* @see https://redis.io/commands/incrby
|
|
6049
|
+
* @see node_modules/@upstash/redis/docs/commands/string/incrby.mdx
|
|
5626
6050
|
*/
|
|
5627
6051
|
incrby = (...args) => new IncrByCommand(args, this.opts).exec(this.client);
|
|
5628
6052
|
/**
|
|
5629
6053
|
* @see https://redis.io/commands/incrbyfloat
|
|
6054
|
+
* @see node_modules/@upstash/redis/docs/commands/string/incrbyfloat.mdx
|
|
5630
6055
|
*/
|
|
5631
6056
|
incrbyfloat = (...args) => new IncrByFloatCommand(args, this.opts).exec(this.client);
|
|
5632
6057
|
/**
|
|
5633
6058
|
* @see https://redis.io/commands/keys
|
|
6059
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/keys.mdx
|
|
5634
6060
|
*/
|
|
5635
6061
|
keys = (...args) => new KeysCommand(args, this.opts).exec(this.client);
|
|
5636
6062
|
/**
|
|
5637
6063
|
* @see https://redis.io/commands/lindex
|
|
6064
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lindex.mdx
|
|
6065
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
6066
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
6067
|
+
* to receive raw strings.
|
|
5638
6068
|
*/
|
|
5639
6069
|
lindex = (...args) => new LIndexCommand(args, this.opts).exec(this.client);
|
|
5640
6070
|
/**
|
|
5641
6071
|
* @see https://redis.io/commands/linsert
|
|
6072
|
+
* @see node_modules/@upstash/redis/docs/commands/list/linsert.mdx
|
|
5642
6073
|
*/
|
|
5643
6074
|
linsert = (key, direction, pivot, value) => new LInsertCommand([key, direction, pivot, value], this.opts).exec(this.client);
|
|
5644
6075
|
/**
|
|
5645
6076
|
* @see https://redis.io/commands/llen
|
|
6077
|
+
* @see node_modules/@upstash/redis/docs/commands/list/llen.mdx
|
|
5646
6078
|
*/
|
|
5647
6079
|
llen = (...args) => new LLenCommand(args, this.opts).exec(this.client);
|
|
5648
6080
|
/**
|
|
5649
6081
|
* @see https://redis.io/commands/lmove
|
|
6082
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lmove.mdx
|
|
5650
6083
|
*/
|
|
5651
6084
|
lmove = (...args) => new LMoveCommand(args, this.opts).exec(this.client);
|
|
5652
6085
|
/**
|
|
5653
6086
|
* @see https://redis.io/commands/lpop
|
|
6087
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lpop.mdx
|
|
6088
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
6089
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
6090
|
+
* to receive raw strings.
|
|
5654
6091
|
*/
|
|
5655
6092
|
lpop = (...args) => new LPopCommand(args, this.opts).exec(this.client);
|
|
5656
6093
|
/**
|
|
@@ -5659,54 +6096,73 @@ var Redis = class {
|
|
|
5659
6096
|
lmpop = (...args) => new LmPopCommand(args, this.opts).exec(this.client);
|
|
5660
6097
|
/**
|
|
5661
6098
|
* @see https://redis.io/commands/lpos
|
|
6099
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lpos.mdx
|
|
5662
6100
|
*/
|
|
5663
6101
|
lpos = (...args) => new LPosCommand(args, this.opts).exec(this.client);
|
|
5664
6102
|
/**
|
|
5665
6103
|
* @see https://redis.io/commands/lpush
|
|
6104
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lpush.mdx
|
|
5666
6105
|
*/
|
|
5667
6106
|
lpush = (key, ...elements) => new LPushCommand([key, ...elements], this.opts).exec(this.client);
|
|
5668
6107
|
/**
|
|
5669
6108
|
* @see https://redis.io/commands/lpushx
|
|
6109
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lpushx.mdx
|
|
5670
6110
|
*/
|
|
5671
6111
|
lpushx = (key, ...elements) => new LPushXCommand([key, ...elements], this.opts).exec(this.client);
|
|
5672
6112
|
/**
|
|
5673
6113
|
* @see https://redis.io/commands/lrange
|
|
6114
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lrange.mdx
|
|
6115
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
6116
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
6117
|
+
* to receive raw strings.
|
|
5674
6118
|
*/
|
|
5675
6119
|
lrange = (...args) => new LRangeCommand(args, this.opts).exec(this.client);
|
|
5676
6120
|
/**
|
|
5677
6121
|
* @see https://redis.io/commands/lrem
|
|
6122
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lrem.mdx
|
|
5678
6123
|
*/
|
|
5679
6124
|
lrem = (key, count, value) => new LRemCommand([key, count, value], this.opts).exec(this.client);
|
|
5680
6125
|
/**
|
|
5681
6126
|
* @see https://redis.io/commands/lset
|
|
6127
|
+
* @see node_modules/@upstash/redis/docs/commands/list/lset.mdx
|
|
5682
6128
|
*/
|
|
5683
6129
|
lset = (key, index, value) => new LSetCommand([key, index, value], this.opts).exec(this.client);
|
|
5684
6130
|
/**
|
|
5685
6131
|
* @see https://redis.io/commands/ltrim
|
|
6132
|
+
* @see node_modules/@upstash/redis/docs/commands/list/ltrim.mdx
|
|
5686
6133
|
*/
|
|
5687
6134
|
ltrim = (...args) => new LTrimCommand(args, this.opts).exec(this.client);
|
|
5688
6135
|
/**
|
|
5689
6136
|
* @see https://redis.io/commands/mget
|
|
6137
|
+
* @see node_modules/@upstash/redis/docs/commands/string/mget.mdx
|
|
6138
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
6139
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
6140
|
+
* to receive raw strings.
|
|
5690
6141
|
*/
|
|
5691
6142
|
mget = (...args) => new MGetCommand(args, this.opts).exec(this.client);
|
|
5692
6143
|
/**
|
|
5693
6144
|
* @see https://redis.io/commands/mset
|
|
6145
|
+
* @see node_modules/@upstash/redis/docs/commands/string/mset.mdx
|
|
5694
6146
|
*/
|
|
5695
6147
|
mset = (kv) => new MSetCommand([kv], this.opts).exec(this.client);
|
|
5696
6148
|
/**
|
|
5697
6149
|
* @see https://redis.io/commands/msetnx
|
|
6150
|
+
* @see node_modules/@upstash/redis/docs/commands/string/msetnx.mdx
|
|
5698
6151
|
*/
|
|
5699
6152
|
msetnx = (kv) => new MSetNXCommand([kv], this.opts).exec(this.client);
|
|
5700
6153
|
/**
|
|
5701
6154
|
* @see https://redis.io/commands/persist
|
|
6155
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/persist.mdx
|
|
5702
6156
|
*/
|
|
5703
6157
|
persist = (...args) => new PersistCommand(args, this.opts).exec(this.client);
|
|
5704
6158
|
/**
|
|
5705
6159
|
* @see https://redis.io/commands/pexpire
|
|
6160
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/pexpire.mdx
|
|
5706
6161
|
*/
|
|
5707
6162
|
pexpire = (...args) => new PExpireCommand(args, this.opts).exec(this.client);
|
|
5708
6163
|
/**
|
|
5709
6164
|
* @see https://redis.io/commands/pexpireat
|
|
6165
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/pexpireat.mdx
|
|
5710
6166
|
*/
|
|
5711
6167
|
pexpireat = (...args) => new PExpireAtCommand(args, this.opts).exec(this.client);
|
|
5712
6168
|
/**
|
|
@@ -5723,6 +6179,7 @@ var Redis = class {
|
|
|
5723
6179
|
pfmerge = (...args) => new PfMergeCommand(args, this.opts).exec(this.client);
|
|
5724
6180
|
/**
|
|
5725
6181
|
* @see https://redis.io/commands/ping
|
|
6182
|
+
* @see node_modules/@upstash/redis/docs/commands/auth/ping.mdx
|
|
5726
6183
|
*/
|
|
5727
6184
|
ping = (args) => new PingCommand(args, this.opts).exec(this.client);
|
|
5728
6185
|
/**
|
|
@@ -5731,6 +6188,11 @@ var Redis = class {
|
|
|
5731
6188
|
psetex = (key, ttl, value) => new PSetEXCommand([key, ttl, value], this.opts).exec(this.client);
|
|
5732
6189
|
/**
|
|
5733
6190
|
* @see https://redis.io/commands/psubscribe
|
|
6191
|
+
* @see node_modules/@upstash/redis/docs/commands/pubsub/psubscribe.mdx
|
|
6192
|
+
* Messages are JSON-parsed automatically: a published "123" arrives as the number 123. Unlike
|
|
6193
|
+
* subscribe, a message that is not valid JSON (such as "hello") never reaches the listener and
|
|
6194
|
+
* emits an "error" event instead. Pass automaticDeserialization: false to the Redis constructor
|
|
6195
|
+
* to receive raw strings.
|
|
5734
6196
|
*/
|
|
5735
6197
|
psubscribe = (patterns) => {
|
|
5736
6198
|
const patternArray = Array.isArray(patterns) ? patterns : [patterns];
|
|
@@ -5738,38 +6200,50 @@ var Redis = class {
|
|
|
5738
6200
|
};
|
|
5739
6201
|
/**
|
|
5740
6202
|
* @see https://redis.io/commands/pttl
|
|
6203
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/pttl.mdx
|
|
5741
6204
|
*/
|
|
5742
6205
|
pttl = (...args) => new PTtlCommand(args, this.opts).exec(this.client);
|
|
5743
6206
|
/**
|
|
5744
6207
|
* @see https://redis.io/commands/publish
|
|
6208
|
+
* @see node_modules/@upstash/redis/docs/commands/pubsub/publish.mdx
|
|
5745
6209
|
*/
|
|
5746
6210
|
publish = (...args) => new PublishCommand(args, this.opts).exec(this.client);
|
|
5747
6211
|
/**
|
|
5748
6212
|
* @see https://redis.io/commands/randomkey
|
|
6213
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/randomkey.mdx
|
|
5749
6214
|
*/
|
|
5750
6215
|
randomkey = () => new RandomKeyCommand().exec(this.client);
|
|
5751
6216
|
/**
|
|
5752
6217
|
* @see https://redis.io/commands/rename
|
|
6218
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/rename.mdx
|
|
5753
6219
|
*/
|
|
5754
6220
|
rename = (...args) => new RenameCommand(args, this.opts).exec(this.client);
|
|
5755
6221
|
/**
|
|
5756
6222
|
* @see https://redis.io/commands/renamenx
|
|
6223
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/renamenx.mdx
|
|
5757
6224
|
*/
|
|
5758
6225
|
renamenx = (...args) => new RenameNXCommand(args, this.opts).exec(this.client);
|
|
5759
6226
|
/**
|
|
5760
6227
|
* @see https://redis.io/commands/rpop
|
|
6228
|
+
* @see node_modules/@upstash/redis/docs/commands/list/rpop.mdx
|
|
6229
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
6230
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
6231
|
+
* to receive raw strings.
|
|
5761
6232
|
*/
|
|
5762
6233
|
rpop = (...args) => new RPopCommand(args, this.opts).exec(this.client);
|
|
5763
6234
|
/**
|
|
5764
6235
|
* @see https://redis.io/commands/rpush
|
|
6236
|
+
* @see node_modules/@upstash/redis/docs/commands/list/rpush.mdx
|
|
5765
6237
|
*/
|
|
5766
6238
|
rpush = (key, ...elements) => new RPushCommand([key, ...elements], this.opts).exec(this.client);
|
|
5767
6239
|
/**
|
|
5768
6240
|
* @see https://redis.io/commands/rpushx
|
|
6241
|
+
* @see node_modules/@upstash/redis/docs/commands/list/rpushx.mdx
|
|
5769
6242
|
*/
|
|
5770
6243
|
rpushx = (key, ...elements) => new RPushXCommand([key, ...elements], this.opts).exec(this.client);
|
|
5771
6244
|
/**
|
|
5772
6245
|
* @see https://redis.io/commands/sadd
|
|
6246
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sadd.mdx
|
|
5773
6247
|
*/
|
|
5774
6248
|
sadd = (key, member, ...members) => new SAddCommand([key, member, ...members], this.opts).exec(this.client);
|
|
5775
6249
|
scan(cursor, opts) {
|
|
@@ -5777,34 +6251,42 @@ var Redis = class {
|
|
|
5777
6251
|
}
|
|
5778
6252
|
/**
|
|
5779
6253
|
* @see https://redis.io/commands/scard
|
|
6254
|
+
* @see node_modules/@upstash/redis/docs/commands/set/scard.mdx
|
|
5780
6255
|
*/
|
|
5781
6256
|
scard = (...args) => new SCardCommand(args, this.opts).exec(this.client);
|
|
5782
6257
|
/**
|
|
5783
6258
|
* @see https://redis.io/commands/script-exists
|
|
6259
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/script_exists.mdx
|
|
5784
6260
|
*/
|
|
5785
6261
|
scriptExists = (...args) => new ScriptExistsCommand(args, this.opts).exec(this.client);
|
|
5786
6262
|
/**
|
|
5787
6263
|
* @see https://redis.io/commands/script-flush
|
|
6264
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/script_flush.mdx
|
|
5788
6265
|
*/
|
|
5789
6266
|
scriptFlush = (...args) => new ScriptFlushCommand(args, this.opts).exec(this.client);
|
|
5790
6267
|
/**
|
|
5791
6268
|
* @see https://redis.io/commands/script-load
|
|
6269
|
+
* @see node_modules/@upstash/redis/docs/commands/scripts/script_load.mdx
|
|
5792
6270
|
*/
|
|
5793
6271
|
scriptLoad = (...args) => new ScriptLoadCommand(args, this.opts).exec(this.client);
|
|
5794
6272
|
/**
|
|
5795
6273
|
* @see https://redis.io/commands/sdiff
|
|
6274
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sdiff.mdx
|
|
5796
6275
|
*/
|
|
5797
6276
|
sdiff = (...args) => new SDiffCommand(args, this.opts).exec(this.client);
|
|
5798
6277
|
/**
|
|
5799
6278
|
* @see https://redis.io/commands/sdiffstore
|
|
6279
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sdiffstore.mdx
|
|
5800
6280
|
*/
|
|
5801
6281
|
sdiffstore = (...args) => new SDiffStoreCommand(args, this.opts).exec(this.client);
|
|
5802
6282
|
/**
|
|
5803
6283
|
* @see https://redis.io/commands/set
|
|
6284
|
+
* @see node_modules/@upstash/redis/docs/commands/string/set.mdx
|
|
5804
6285
|
*/
|
|
5805
6286
|
set = (key, value, opts) => new SetCommand([key, value, opts], this.opts).exec(this.client);
|
|
5806
6287
|
/**
|
|
5807
6288
|
* @see https://redis.io/commands/setbit
|
|
6289
|
+
* @see node_modules/@upstash/redis/docs/commands/bitmap/setbit.mdx
|
|
5808
6290
|
*/
|
|
5809
6291
|
setbit = (...args) => new SetBitCommand(args, this.opts).exec(this.client);
|
|
5810
6292
|
/**
|
|
@@ -5817,10 +6299,12 @@ var Redis = class {
|
|
|
5817
6299
|
setnx = (key, value) => new SetNxCommand([key, value], this.opts).exec(this.client);
|
|
5818
6300
|
/**
|
|
5819
6301
|
* @see https://redis.io/commands/setrange
|
|
6302
|
+
* @see node_modules/@upstash/redis/docs/commands/string/setrange.mdx
|
|
5820
6303
|
*/
|
|
5821
6304
|
setrange = (...args) => new SetRangeCommand(args, this.opts).exec(this.client);
|
|
5822
6305
|
/**
|
|
5823
6306
|
* @see https://redis.io/commands/sinter
|
|
6307
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sinter.mdx
|
|
5824
6308
|
*/
|
|
5825
6309
|
sinter = (...args) => new SInterCommand(args, this.opts).exec(this.client);
|
|
5826
6310
|
/**
|
|
@@ -5829,46 +6313,60 @@ var Redis = class {
|
|
|
5829
6313
|
sintercard = (...args) => new SInterCardCommand(args, this.opts).exec(this.client);
|
|
5830
6314
|
/**
|
|
5831
6315
|
* @see https://redis.io/commands/sinterstore
|
|
6316
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sinterstore.mdx
|
|
5832
6317
|
*/
|
|
5833
6318
|
sinterstore = (...args) => new SInterStoreCommand(args, this.opts).exec(this.client);
|
|
5834
6319
|
/**
|
|
5835
6320
|
* @see https://redis.io/commands/sismember
|
|
6321
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sismember.mdx
|
|
5836
6322
|
*/
|
|
5837
6323
|
sismember = (key, member) => new SIsMemberCommand([key, member], this.opts).exec(this.client);
|
|
5838
6324
|
/**
|
|
5839
6325
|
* @see https://redis.io/commands/smismember
|
|
6326
|
+
* @see node_modules/@upstash/redis/docs/commands/set/smismember.mdx
|
|
5840
6327
|
*/
|
|
5841
6328
|
smismember = (key, members) => new SMIsMemberCommand([key, members], this.opts).exec(this.client);
|
|
5842
6329
|
/**
|
|
5843
6330
|
* @see https://redis.io/commands/smembers
|
|
6331
|
+
* @see node_modules/@upstash/redis/docs/commands/set/smembers.mdx
|
|
5844
6332
|
*/
|
|
5845
6333
|
smembers = (...args) => new SMembersCommand(args, this.opts).exec(this.client);
|
|
5846
6334
|
/**
|
|
5847
6335
|
* @see https://redis.io/commands/smove
|
|
6336
|
+
* @see node_modules/@upstash/redis/docs/commands/set/smove.mdx
|
|
5848
6337
|
*/
|
|
5849
6338
|
smove = (source, destination, member) => new SMoveCommand([source, destination, member], this.opts).exec(this.client);
|
|
5850
6339
|
/**
|
|
5851
6340
|
* @see https://redis.io/commands/spop
|
|
6341
|
+
* @see node_modules/@upstash/redis/docs/commands/set/spop.mdx
|
|
5852
6342
|
*/
|
|
5853
6343
|
spop = (...args) => new SPopCommand(args, this.opts).exec(this.client);
|
|
5854
6344
|
/**
|
|
5855
6345
|
* @see https://redis.io/commands/srandmember
|
|
6346
|
+
* @see node_modules/@upstash/redis/docs/commands/set/srandmember.mdx
|
|
5856
6347
|
*/
|
|
5857
6348
|
srandmember = (...args) => new SRandMemberCommand(args, this.opts).exec(this.client);
|
|
5858
6349
|
/**
|
|
5859
6350
|
* @see https://redis.io/commands/srem
|
|
6351
|
+
* @see node_modules/@upstash/redis/docs/commands/set/srem.mdx
|
|
5860
6352
|
*/
|
|
5861
6353
|
srem = (key, ...members) => new SRemCommand([key, ...members], this.opts).exec(this.client);
|
|
5862
6354
|
/**
|
|
5863
6355
|
* @see https://redis.io/commands/sscan
|
|
6356
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sscan.mdx
|
|
5864
6357
|
*/
|
|
5865
6358
|
sscan = (...args) => new SScanCommand(args, this.opts).exec(this.client);
|
|
5866
6359
|
/**
|
|
5867
6360
|
* @see https://redis.io/commands/strlen
|
|
6361
|
+
* @see node_modules/@upstash/redis/docs/commands/string/strlen.mdx
|
|
5868
6362
|
*/
|
|
5869
6363
|
strlen = (...args) => new StrLenCommand(args, this.opts).exec(this.client);
|
|
5870
6364
|
/**
|
|
5871
6365
|
* @see https://redis.io/commands/subscribe
|
|
6366
|
+
* @see node_modules/@upstash/redis/docs/commands/pubsub/subscribe.mdx
|
|
6367
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
6368
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
6369
|
+
* to receive raw strings.
|
|
5872
6370
|
*/
|
|
5873
6371
|
subscribe = (channels) => {
|
|
5874
6372
|
const channelArray = Array.isArray(channels) ? channels : [channels];
|
|
@@ -5876,10 +6374,12 @@ var Redis = class {
|
|
|
5876
6374
|
};
|
|
5877
6375
|
/**
|
|
5878
6376
|
* @see https://redis.io/commands/sunion
|
|
6377
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sunion.mdx
|
|
5879
6378
|
*/
|
|
5880
6379
|
sunion = (...args) => new SUnionCommand(args, this.opts).exec(this.client);
|
|
5881
6380
|
/**
|
|
5882
6381
|
* @see https://redis.io/commands/sunionstore
|
|
6382
|
+
* @see node_modules/@upstash/redis/docs/commands/set/sunionstore.mdx
|
|
5883
6383
|
*/
|
|
5884
6384
|
sunionstore = (...args) => new SUnionStoreCommand(args, this.opts).exec(this.client);
|
|
5885
6385
|
/**
|
|
@@ -5888,86 +6388,117 @@ var Redis = class {
|
|
|
5888
6388
|
time = () => new TimeCommand().exec(this.client);
|
|
5889
6389
|
/**
|
|
5890
6390
|
* @see https://redis.io/commands/touch
|
|
6391
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/touch.mdx
|
|
5891
6392
|
*/
|
|
5892
6393
|
touch = (...args) => new TouchCommand(args, this.opts).exec(this.client);
|
|
5893
6394
|
/**
|
|
5894
6395
|
* @see https://redis.io/commands/ttl
|
|
6396
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/ttl.mdx
|
|
5895
6397
|
*/
|
|
5896
6398
|
ttl = (...args) => new TtlCommand(args, this.opts).exec(this.client);
|
|
5897
6399
|
/**
|
|
5898
6400
|
* @see https://redis.io/commands/type
|
|
6401
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/type.mdx
|
|
5899
6402
|
*/
|
|
5900
6403
|
type = (...args) => new TypeCommand(args, this.opts).exec(this.client);
|
|
5901
6404
|
/**
|
|
5902
6405
|
* @see https://redis.io/commands/unlink
|
|
6406
|
+
* @see node_modules/@upstash/redis/docs/commands/generic/unlink.mdx
|
|
5903
6407
|
*/
|
|
5904
6408
|
unlink = (...args) => new UnlinkCommand(args, this.opts).exec(this.client);
|
|
5905
6409
|
/**
|
|
5906
6410
|
* @see https://redis.io/commands/xadd
|
|
6411
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xadd.mdx
|
|
5907
6412
|
*/
|
|
5908
6413
|
xadd = (...args) => new XAddCommand(args, this.opts).exec(this.client);
|
|
5909
6414
|
/**
|
|
5910
6415
|
* @see https://redis.io/commands/xack
|
|
6416
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xack.mdx
|
|
5911
6417
|
*/
|
|
5912
6418
|
xack = (...args) => new XAckCommand(args, this.opts).exec(this.client);
|
|
5913
6419
|
/**
|
|
5914
6420
|
* @see https://redis.io/commands/xackdel
|
|
6421
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xackdel.mdx
|
|
5915
6422
|
*/
|
|
5916
6423
|
xackdel = (...args) => new XAckDelCommand(args, this.opts).exec(this.client);
|
|
5917
6424
|
/**
|
|
5918
6425
|
* @see https://redis.io/commands/xdel
|
|
6426
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xdel.mdx
|
|
5919
6427
|
*/
|
|
5920
6428
|
xdel = (...args) => new XDelCommand(args, this.opts).exec(this.client);
|
|
5921
6429
|
/**
|
|
5922
6430
|
* @see https://redis.io/commands/xdelex
|
|
6431
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xdelex.mdx
|
|
5923
6432
|
*/
|
|
5924
6433
|
xdelex = (...args) => new XDelExCommand(args, this.opts).exec(this.client);
|
|
5925
6434
|
/**
|
|
5926
6435
|
* @see https://redis.io/commands/xgroup
|
|
6436
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xgroup.mdx
|
|
5927
6437
|
*/
|
|
5928
6438
|
xgroup = (...args) => new XGroupCommand(args, this.opts).exec(this.client);
|
|
5929
6439
|
/**
|
|
5930
6440
|
* @see https://redis.io/commands/xread
|
|
6441
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xread.mdx
|
|
5931
6442
|
*/
|
|
5932
6443
|
xread = (...args) => new XReadCommand(args, this.opts).exec(this.client);
|
|
5933
6444
|
/**
|
|
5934
6445
|
* @see https://redis.io/commands/xreadgroup
|
|
6446
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xreadgroup.mdx
|
|
5935
6447
|
*/
|
|
5936
6448
|
xreadgroup = (...args) => new XReadGroupCommand(args, this.opts).exec(this.client);
|
|
5937
6449
|
/**
|
|
5938
6450
|
* @see https://redis.io/commands/xinfo
|
|
6451
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xinfo.mdx
|
|
5939
6452
|
*/
|
|
5940
6453
|
xinfo = (...args) => new XInfoCommand(args, this.opts).exec(this.client);
|
|
5941
6454
|
/**
|
|
5942
6455
|
* @see https://redis.io/commands/xlen
|
|
6456
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xlen.mdx
|
|
5943
6457
|
*/
|
|
5944
6458
|
xlen = (...args) => new XLenCommand(args, this.opts).exec(this.client);
|
|
5945
6459
|
/**
|
|
5946
6460
|
* @see https://redis.io/commands/xpending
|
|
6461
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xpending.mdx
|
|
5947
6462
|
*/
|
|
5948
6463
|
xpending = (...args) => new XPendingCommand(args, this.opts).exec(this.client);
|
|
5949
6464
|
/**
|
|
5950
6465
|
* @see https://redis.io/commands/xclaim
|
|
6466
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xclaim.mdx
|
|
5951
6467
|
*/
|
|
5952
6468
|
xclaim = (...args) => new XClaimCommand(args, this.opts).exec(this.client);
|
|
5953
6469
|
/**
|
|
5954
6470
|
* @see https://redis.io/commands/xautoclaim
|
|
6471
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xautoclaim.mdx
|
|
5955
6472
|
*/
|
|
5956
6473
|
xautoclaim = (...args) => new XAutoClaim(args, this.opts).exec(this.client);
|
|
5957
6474
|
/**
|
|
5958
6475
|
* @see https://redis.io/commands/xtrim
|
|
6476
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xtrim.mdx
|
|
5959
6477
|
*/
|
|
5960
6478
|
xtrim = (...args) => new XTrimCommand(args, this.opts).exec(this.client);
|
|
5961
6479
|
/**
|
|
5962
6480
|
* @see https://redis.io/commands/xrange
|
|
6481
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xrange.mdx
|
|
6482
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
6483
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
6484
|
+
* to receive raw strings.
|
|
6485
|
+
* With automaticDeserialization: false, xrange returns [id, [field, value, ...]] entries instead,
|
|
6486
|
+
* such as [["1790341484470-0", ["text", "123"]]], and [] for a missing key.
|
|
5963
6487
|
*/
|
|
5964
6488
|
xrange = (...args) => new XRangeCommand(args, this.opts).exec(this.client);
|
|
5965
6489
|
/**
|
|
5966
6490
|
* @see https://redis.io/commands/xrevrange
|
|
6491
|
+
* @see node_modules/@upstash/redis/docs/commands/stream/xrevrange.mdx
|
|
6492
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
6493
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
6494
|
+
* to receive raw strings.
|
|
6495
|
+
* With automaticDeserialization: false, xrevrange returns [id, [field, value, ...]] entries instead,
|
|
6496
|
+
* such as [["1790341484470-0", ["text", "123"]]], and [] for a missing key.
|
|
5967
6497
|
*/
|
|
5968
6498
|
xrevrange = (...args) => new XRevRangeCommand(args, this.opts).exec(this.client);
|
|
5969
6499
|
/**
|
|
5970
6500
|
* @see https://redis.io/commands/zadd
|
|
6501
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zadd.mdx
|
|
5971
6502
|
*/
|
|
5972
6503
|
zadd = (...args) => {
|
|
5973
6504
|
if ("score" in args[1]) {
|
|
@@ -5982,74 +6513,95 @@ var Redis = class {
|
|
|
5982
6513
|
};
|
|
5983
6514
|
/**
|
|
5984
6515
|
* @see https://redis.io/commands/zcard
|
|
6516
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zcard.mdx
|
|
5985
6517
|
*/
|
|
5986
6518
|
zcard = (...args) => new ZCardCommand(args, this.opts).exec(this.client);
|
|
5987
6519
|
/**
|
|
5988
6520
|
* @see https://redis.io/commands/zcount
|
|
6521
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zcount.mdx
|
|
5989
6522
|
*/
|
|
5990
6523
|
zcount = (...args) => new ZCountCommand(args, this.opts).exec(this.client);
|
|
5991
6524
|
/**
|
|
5992
6525
|
* @see https://redis.io/commands/zdiffstore
|
|
6526
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zdiffstore.mdx
|
|
5993
6527
|
*/
|
|
5994
6528
|
zdiffstore = (...args) => new ZDiffStoreCommand(args, this.opts).exec(this.client);
|
|
5995
6529
|
/**
|
|
5996
6530
|
* @see https://redis.io/commands/zincrby
|
|
6531
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zincrby.mdx
|
|
5997
6532
|
*/
|
|
5998
6533
|
zincrby = (key, increment, member) => new ZIncrByCommand([key, increment, member], this.opts).exec(this.client);
|
|
5999
6534
|
/**
|
|
6000
6535
|
* @see https://redis.io/commands/zinterstore
|
|
6536
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zinterstore.mdx
|
|
6001
6537
|
*/
|
|
6002
6538
|
zinterstore = (...args) => new ZInterStoreCommand(args, this.opts).exec(this.client);
|
|
6003
6539
|
/**
|
|
6004
6540
|
* @see https://redis.io/commands/zlexcount
|
|
6541
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zlexcount.mdx
|
|
6005
6542
|
*/
|
|
6006
6543
|
zlexcount = (...args) => new ZLexCountCommand(args, this.opts).exec(this.client);
|
|
6007
6544
|
/**
|
|
6008
6545
|
* @see https://redis.io/commands/zmscore
|
|
6546
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zmscore.mdx
|
|
6009
6547
|
*/
|
|
6010
6548
|
zmscore = (...args) => new ZMScoreCommand(args, this.opts).exec(this.client);
|
|
6011
6549
|
/**
|
|
6012
6550
|
* @see https://redis.io/commands/zpopmax
|
|
6551
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zpopmax.mdx
|
|
6013
6552
|
*/
|
|
6014
6553
|
zpopmax = (...args) => new ZPopMaxCommand(args, this.opts).exec(this.client);
|
|
6015
6554
|
/**
|
|
6016
6555
|
* @see https://redis.io/commands/zpopmin
|
|
6556
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zpopmin.mdx
|
|
6017
6557
|
*/
|
|
6018
6558
|
zpopmin = (...args) => new ZPopMinCommand(args, this.opts).exec(this.client);
|
|
6019
6559
|
/**
|
|
6020
6560
|
* @see https://redis.io/commands/zrange
|
|
6561
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zrange.mdx
|
|
6562
|
+
* Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as
|
|
6563
|
+
* true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor
|
|
6564
|
+
* to receive raw strings.
|
|
6021
6565
|
*/
|
|
6022
6566
|
zrange = (...args) => new ZRangeCommand(args, this.opts).exec(this.client);
|
|
6023
6567
|
/**
|
|
6024
6568
|
* @see https://redis.io/commands/zrank
|
|
6569
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zrank.mdx
|
|
6025
6570
|
*/
|
|
6026
6571
|
zrank = (key, member) => new ZRankCommand([key, member], this.opts).exec(this.client);
|
|
6027
6572
|
/**
|
|
6028
6573
|
* @see https://redis.io/commands/zrem
|
|
6574
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zrem.mdx
|
|
6029
6575
|
*/
|
|
6030
6576
|
zrem = (key, ...members) => new ZRemCommand([key, ...members], this.opts).exec(this.client);
|
|
6031
6577
|
/**
|
|
6032
6578
|
* @see https://redis.io/commands/zremrangebylex
|
|
6579
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zremrangebylex.mdx
|
|
6033
6580
|
*/
|
|
6034
6581
|
zremrangebylex = (...args) => new ZRemRangeByLexCommand(args, this.opts).exec(this.client);
|
|
6035
6582
|
/**
|
|
6036
6583
|
* @see https://redis.io/commands/zremrangebyrank
|
|
6584
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zremrangebyrank.mdx
|
|
6037
6585
|
*/
|
|
6038
6586
|
zremrangebyrank = (...args) => new ZRemRangeByRankCommand(args, this.opts).exec(this.client);
|
|
6039
6587
|
/**
|
|
6040
6588
|
* @see https://redis.io/commands/zremrangebyscore
|
|
6589
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zremrangebyscore.mdx
|
|
6041
6590
|
*/
|
|
6042
6591
|
zremrangebyscore = (...args) => new ZRemRangeByScoreCommand(args, this.opts).exec(this.client);
|
|
6043
6592
|
/**
|
|
6044
6593
|
* @see https://redis.io/commands/zrevrank
|
|
6594
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zrevrank.mdx
|
|
6045
6595
|
*/
|
|
6046
6596
|
zrevrank = (key, member) => new ZRevRankCommand([key, member], this.opts).exec(this.client);
|
|
6047
6597
|
/**
|
|
6048
6598
|
* @see https://redis.io/commands/zscan
|
|
6599
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zscan.mdx
|
|
6049
6600
|
*/
|
|
6050
6601
|
zscan = (...args) => new ZScanCommand(args, this.opts).exec(this.client);
|
|
6051
6602
|
/**
|
|
6052
6603
|
* @see https://redis.io/commands/zscore
|
|
6604
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zscore.mdx
|
|
6053
6605
|
*/
|
|
6054
6606
|
zscore = (key, member) => new ZScoreCommand([key, member], this.opts).exec(this.client);
|
|
6055
6607
|
/**
|
|
@@ -6058,12 +6610,13 @@ var Redis = class {
|
|
|
6058
6610
|
zunion = (...args) => new ZUnionCommand(args, this.opts).exec(this.client);
|
|
6059
6611
|
/**
|
|
6060
6612
|
* @see https://redis.io/commands/zunionstore
|
|
6613
|
+
* @see node_modules/@upstash/redis/docs/commands/zset/zunionstore.mdx
|
|
6061
6614
|
*/
|
|
6062
6615
|
zunionstore = (...args) => new ZUnionStoreCommand(args, this.opts).exec(this.client);
|
|
6063
6616
|
};
|
|
6064
6617
|
|
|
6065
6618
|
// version.ts
|
|
6066
|
-
var VERSION = "v1.
|
|
6619
|
+
var VERSION = "v1.41.0";
|
|
6067
6620
|
|
|
6068
6621
|
// platforms/fastly.ts
|
|
6069
6622
|
var Redis2 = class extends Redis {
|