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