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