@upstash/ratelimit 0.3.0-rc.1 → 0.3.2

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