@upstash/ratelimit 0.3.0-rc.1 → 0.3.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 (444) hide show
  1. package/dist/index.d.ts +569 -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,1203 +0,0 @@
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;