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