@upstash/ratelimit 0.2.0 → 0.3.0-rc.1

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