@upstash/redis 0.0.0-ci.f2a52c0f → 0.0.0-ci.f52b150f2e17f627c36bc1dfa652992a3ede2b79-20231109104625

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 (395) hide show
  1. package/README.md +31 -22
  2. package/chunk-2WDQUCIO.mjs +1 -0
  3. package/chunk-CV4LANIF.js +1 -0
  4. package/cloudflare.d.mts +45 -0
  5. package/cloudflare.d.ts +45 -0
  6. package/cloudflare.js +1 -0
  7. package/cloudflare.mjs +1 -0
  8. package/fastly.d.mts +43 -0
  9. package/fastly.d.ts +43 -0
  10. package/fastly.js +1 -0
  11. package/fastly.mjs +1 -0
  12. package/nodejs.d.mts +80 -0
  13. package/nodejs.d.ts +80 -0
  14. package/nodejs.js +1 -0
  15. package/nodejs.mjs +1 -0
  16. package/package.json +1 -101
  17. package/zmscore-003c153f.d.ts +3150 -0
  18. package/.releaserc +0 -14
  19. package/esm/package.json +0 -3
  20. package/esm/pkg/commands/append.js +0 -9
  21. package/esm/pkg/commands/bitcount.js +0 -16
  22. package/esm/pkg/commands/bitop.js +0 -9
  23. package/esm/pkg/commands/bitpos.js +0 -9
  24. package/esm/pkg/commands/command.js +0 -57
  25. package/esm/pkg/commands/dbsize.js +0 -9
  26. package/esm/pkg/commands/decr.js +0 -9
  27. package/esm/pkg/commands/decrby.js +0 -9
  28. package/esm/pkg/commands/del.js +0 -9
  29. package/esm/pkg/commands/echo.js +0 -9
  30. package/esm/pkg/commands/eval.js +0 -9
  31. package/esm/pkg/commands/evalsha.js +0 -9
  32. package/esm/pkg/commands/exists.js +0 -9
  33. package/esm/pkg/commands/expire.js +0 -9
  34. package/esm/pkg/commands/expireat.js +0 -9
  35. package/esm/pkg/commands/flushall.js +0 -13
  36. package/esm/pkg/commands/flushdb.js +0 -13
  37. package/esm/pkg/commands/get.js +0 -9
  38. package/esm/pkg/commands/getbit.js +0 -9
  39. package/esm/pkg/commands/getrange.js +0 -9
  40. package/esm/pkg/commands/getset.js +0 -9
  41. package/esm/pkg/commands/hdel.js +0 -9
  42. package/esm/pkg/commands/hexists.js +0 -9
  43. package/esm/pkg/commands/hget.js +0 -9
  44. package/esm/pkg/commands/hgetall.js +0 -33
  45. package/esm/pkg/commands/hincrby.js +0 -9
  46. package/esm/pkg/commands/hincrbyfloat.js +0 -9
  47. package/esm/pkg/commands/hkeys.js +0 -9
  48. package/esm/pkg/commands/hlen.js +0 -9
  49. package/esm/pkg/commands/hmget.js +0 -35
  50. package/esm/pkg/commands/hmset.js +0 -13
  51. package/esm/pkg/commands/hscan.js +0 -16
  52. package/esm/pkg/commands/hset.js +0 -13
  53. package/esm/pkg/commands/hsetnx.js +0 -9
  54. package/esm/pkg/commands/hstrlen.js +0 -9
  55. package/esm/pkg/commands/hvals.js +0 -9
  56. package/esm/pkg/commands/incr.js +0 -9
  57. package/esm/pkg/commands/incrby.js +0 -9
  58. package/esm/pkg/commands/incrbyfloat.js +0 -9
  59. package/esm/pkg/commands/keys.js +0 -9
  60. package/esm/pkg/commands/lindex.js +0 -6
  61. package/esm/pkg/commands/linsert.js +0 -6
  62. package/esm/pkg/commands/llen.js +0 -9
  63. package/esm/pkg/commands/lpop.js +0 -9
  64. package/esm/pkg/commands/lpush.js +0 -9
  65. package/esm/pkg/commands/lpushx.js +0 -9
  66. package/esm/pkg/commands/lrange.js +0 -6
  67. package/esm/pkg/commands/lrem.js +0 -6
  68. package/esm/pkg/commands/lset.js +0 -6
  69. package/esm/pkg/commands/ltrim.js +0 -6
  70. package/esm/pkg/commands/mget.js +0 -9
  71. package/esm/pkg/commands/mod.js +0 -114
  72. package/esm/pkg/commands/mset.js +0 -12
  73. package/esm/pkg/commands/msetnx.js +0 -9
  74. package/esm/pkg/commands/persist.js +0 -9
  75. package/esm/pkg/commands/pexpire.js +0 -9
  76. package/esm/pkg/commands/pexpireat.js +0 -9
  77. package/esm/pkg/commands/ping.js +0 -13
  78. package/esm/pkg/commands/psetex.js +0 -9
  79. package/esm/pkg/commands/pttl.js +0 -9
  80. package/esm/pkg/commands/publish.js +0 -9
  81. package/esm/pkg/commands/randomkey.js +0 -9
  82. package/esm/pkg/commands/rename.js +0 -9
  83. package/esm/pkg/commands/renamenx.js +0 -9
  84. package/esm/pkg/commands/rpop.js +0 -9
  85. package/esm/pkg/commands/rpush.js +0 -9
  86. package/esm/pkg/commands/rpushx.js +0 -9
  87. package/esm/pkg/commands/sadd.js +0 -9
  88. package/esm/pkg/commands/scan.js +0 -16
  89. package/esm/pkg/commands/scard.js +0 -9
  90. package/esm/pkg/commands/script_exists.js +0 -12
  91. package/esm/pkg/commands/script_flush.js +0 -16
  92. package/esm/pkg/commands/script_load.js +0 -9
  93. package/esm/pkg/commands/sdiff.js +0 -9
  94. package/esm/pkg/commands/sdiffstore.js +0 -9
  95. package/esm/pkg/commands/set.js +0 -24
  96. package/esm/pkg/commands/setbit.js +0 -9
  97. package/esm/pkg/commands/setex.js +0 -9
  98. package/esm/pkg/commands/setnx.js +0 -9
  99. package/esm/pkg/commands/setrange.js +0 -9
  100. package/esm/pkg/commands/sinter.js +0 -9
  101. package/esm/pkg/commands/sinterstore.js +0 -9
  102. package/esm/pkg/commands/sismember.js +0 -9
  103. package/esm/pkg/commands/smembers.js +0 -9
  104. package/esm/pkg/commands/smove.js +0 -9
  105. package/esm/pkg/commands/spop.js +0 -13
  106. package/esm/pkg/commands/srandmember.js +0 -13
  107. package/esm/pkg/commands/srem.js +0 -9
  108. package/esm/pkg/commands/sscan.js +0 -16
  109. package/esm/pkg/commands/strlen.js +0 -9
  110. package/esm/pkg/commands/sunion.js +0 -9
  111. package/esm/pkg/commands/sunionstore.js +0 -9
  112. package/esm/pkg/commands/time.js +0 -9
  113. package/esm/pkg/commands/touch.js +0 -9
  114. package/esm/pkg/commands/ttl.js +0 -9
  115. package/esm/pkg/commands/type.js +0 -9
  116. package/esm/pkg/commands/unlink.js +0 -9
  117. package/esm/pkg/commands/zadd.js +0 -26
  118. package/esm/pkg/commands/zcard.js +0 -9
  119. package/esm/pkg/commands/zcount.js +0 -9
  120. package/esm/pkg/commands/zincrby.js +0 -9
  121. package/esm/pkg/commands/zinterstore.js +0 -27
  122. package/esm/pkg/commands/zlexcount.js +0 -9
  123. package/esm/pkg/commands/zpopmax.js +0 -13
  124. package/esm/pkg/commands/zpopmin.js +0 -13
  125. package/esm/pkg/commands/zrange.js +0 -20
  126. package/esm/pkg/commands/zrank.js +0 -9
  127. package/esm/pkg/commands/zrem.js +0 -9
  128. package/esm/pkg/commands/zremrangebylex.js +0 -9
  129. package/esm/pkg/commands/zremrangebyrank.js +0 -9
  130. package/esm/pkg/commands/zremrangebyscore.js +0 -9
  131. package/esm/pkg/commands/zrevrank.js +0 -9
  132. package/esm/pkg/commands/zscan.js +0 -16
  133. package/esm/pkg/commands/zscore.js +0 -9
  134. package/esm/pkg/commands/zunionstore.js +0 -27
  135. package/esm/pkg/error.js +0 -9
  136. package/esm/pkg/http.js +0 -77
  137. package/esm/pkg/pipeline.js +0 -1125
  138. package/esm/pkg/redis.js +0 -1067
  139. package/esm/pkg/types.js +0 -1
  140. package/esm/pkg/util.js +0 -31
  141. package/esm/platforms/cloudflare.js +0 -62
  142. package/esm/platforms/fastly.js +0 -40
  143. package/esm/platforms/node_with_fetch.js +0 -60
  144. package/esm/platforms/nodejs.js +0 -59
  145. package/script/package.json +0 -3
  146. package/script/pkg/commands/append.js +0 -13
  147. package/script/pkg/commands/bitcount.js +0 -20
  148. package/script/pkg/commands/bitop.js +0 -13
  149. package/script/pkg/commands/bitpos.js +0 -13
  150. package/script/pkg/commands/command.js +0 -61
  151. package/script/pkg/commands/dbsize.js +0 -13
  152. package/script/pkg/commands/decr.js +0 -13
  153. package/script/pkg/commands/decrby.js +0 -13
  154. package/script/pkg/commands/del.js +0 -13
  155. package/script/pkg/commands/echo.js +0 -13
  156. package/script/pkg/commands/eval.js +0 -13
  157. package/script/pkg/commands/evalsha.js +0 -13
  158. package/script/pkg/commands/exists.js +0 -13
  159. package/script/pkg/commands/expire.js +0 -13
  160. package/script/pkg/commands/expireat.js +0 -13
  161. package/script/pkg/commands/flushall.js +0 -17
  162. package/script/pkg/commands/flushdb.js +0 -17
  163. package/script/pkg/commands/get.js +0 -13
  164. package/script/pkg/commands/getbit.js +0 -13
  165. package/script/pkg/commands/getrange.js +0 -13
  166. package/script/pkg/commands/getset.js +0 -13
  167. package/script/pkg/commands/hdel.js +0 -13
  168. package/script/pkg/commands/hexists.js +0 -13
  169. package/script/pkg/commands/hget.js +0 -13
  170. package/script/pkg/commands/hgetall.js +0 -37
  171. package/script/pkg/commands/hincrby.js +0 -13
  172. package/script/pkg/commands/hincrbyfloat.js +0 -13
  173. package/script/pkg/commands/hkeys.js +0 -13
  174. package/script/pkg/commands/hlen.js +0 -13
  175. package/script/pkg/commands/hmget.js +0 -39
  176. package/script/pkg/commands/hmset.js +0 -17
  177. package/script/pkg/commands/hscan.js +0 -20
  178. package/script/pkg/commands/hset.js +0 -17
  179. package/script/pkg/commands/hsetnx.js +0 -13
  180. package/script/pkg/commands/hstrlen.js +0 -13
  181. package/script/pkg/commands/hvals.js +0 -13
  182. package/script/pkg/commands/incr.js +0 -13
  183. package/script/pkg/commands/incrby.js +0 -13
  184. package/script/pkg/commands/incrbyfloat.js +0 -13
  185. package/script/pkg/commands/keys.js +0 -13
  186. package/script/pkg/commands/lindex.js +0 -10
  187. package/script/pkg/commands/linsert.js +0 -10
  188. package/script/pkg/commands/llen.js +0 -13
  189. package/script/pkg/commands/lpop.js +0 -13
  190. package/script/pkg/commands/lpush.js +0 -13
  191. package/script/pkg/commands/lpushx.js +0 -13
  192. package/script/pkg/commands/lrange.js +0 -10
  193. package/script/pkg/commands/lrem.js +0 -10
  194. package/script/pkg/commands/lset.js +0 -10
  195. package/script/pkg/commands/ltrim.js +0 -10
  196. package/script/pkg/commands/mget.js +0 -13
  197. package/script/pkg/commands/mod.js +0 -130
  198. package/script/pkg/commands/mset.js +0 -16
  199. package/script/pkg/commands/msetnx.js +0 -13
  200. package/script/pkg/commands/persist.js +0 -13
  201. package/script/pkg/commands/pexpire.js +0 -13
  202. package/script/pkg/commands/pexpireat.js +0 -13
  203. package/script/pkg/commands/ping.js +0 -17
  204. package/script/pkg/commands/psetex.js +0 -13
  205. package/script/pkg/commands/pttl.js +0 -13
  206. package/script/pkg/commands/publish.js +0 -13
  207. package/script/pkg/commands/randomkey.js +0 -13
  208. package/script/pkg/commands/rename.js +0 -13
  209. package/script/pkg/commands/renamenx.js +0 -13
  210. package/script/pkg/commands/rpop.js +0 -13
  211. package/script/pkg/commands/rpush.js +0 -13
  212. package/script/pkg/commands/rpushx.js +0 -13
  213. package/script/pkg/commands/sadd.js +0 -13
  214. package/script/pkg/commands/scan.js +0 -20
  215. package/script/pkg/commands/scard.js +0 -13
  216. package/script/pkg/commands/script_exists.js +0 -16
  217. package/script/pkg/commands/script_flush.js +0 -20
  218. package/script/pkg/commands/script_load.js +0 -13
  219. package/script/pkg/commands/sdiff.js +0 -13
  220. package/script/pkg/commands/sdiffstore.js +0 -13
  221. package/script/pkg/commands/set.js +0 -28
  222. package/script/pkg/commands/setbit.js +0 -13
  223. package/script/pkg/commands/setex.js +0 -13
  224. package/script/pkg/commands/setnx.js +0 -13
  225. package/script/pkg/commands/setrange.js +0 -13
  226. package/script/pkg/commands/sinter.js +0 -13
  227. package/script/pkg/commands/sinterstore.js +0 -13
  228. package/script/pkg/commands/sismember.js +0 -13
  229. package/script/pkg/commands/smembers.js +0 -13
  230. package/script/pkg/commands/smove.js +0 -13
  231. package/script/pkg/commands/spop.js +0 -17
  232. package/script/pkg/commands/srandmember.js +0 -17
  233. package/script/pkg/commands/srem.js +0 -13
  234. package/script/pkg/commands/sscan.js +0 -20
  235. package/script/pkg/commands/strlen.js +0 -13
  236. package/script/pkg/commands/sunion.js +0 -13
  237. package/script/pkg/commands/sunionstore.js +0 -13
  238. package/script/pkg/commands/time.js +0 -13
  239. package/script/pkg/commands/touch.js +0 -13
  240. package/script/pkg/commands/ttl.js +0 -13
  241. package/script/pkg/commands/type.js +0 -13
  242. package/script/pkg/commands/unlink.js +0 -13
  243. package/script/pkg/commands/zadd.js +0 -30
  244. package/script/pkg/commands/zcard.js +0 -13
  245. package/script/pkg/commands/zcount.js +0 -13
  246. package/script/pkg/commands/zincrby.js +0 -13
  247. package/script/pkg/commands/zinterstore.js +0 -31
  248. package/script/pkg/commands/zlexcount.js +0 -13
  249. package/script/pkg/commands/zpopmax.js +0 -17
  250. package/script/pkg/commands/zpopmin.js +0 -17
  251. package/script/pkg/commands/zrange.js +0 -24
  252. package/script/pkg/commands/zrank.js +0 -13
  253. package/script/pkg/commands/zrem.js +0 -13
  254. package/script/pkg/commands/zremrangebylex.js +0 -13
  255. package/script/pkg/commands/zremrangebyrank.js +0 -13
  256. package/script/pkg/commands/zremrangebyscore.js +0 -13
  257. package/script/pkg/commands/zrevrank.js +0 -13
  258. package/script/pkg/commands/zscan.js +0 -20
  259. package/script/pkg/commands/zscore.js +0 -13
  260. package/script/pkg/commands/zunionstore.js +0 -31
  261. package/script/pkg/error.js +0 -13
  262. package/script/pkg/http.js +0 -81
  263. package/script/pkg/pipeline.js +0 -1129
  264. package/script/pkg/redis.js +0 -1071
  265. package/script/pkg/types.js +0 -2
  266. package/script/pkg/util.js +0 -35
  267. package/script/platforms/cloudflare.js +0 -89
  268. package/script/platforms/fastly.js +0 -67
  269. package/script/platforms/node_with_fetch.js +0 -87
  270. package/script/platforms/nodejs.js +0 -86
  271. package/types/pkg/commands/append.d.ts +0 -7
  272. package/types/pkg/commands/bitcount.d.ts +0 -8
  273. package/types/pkg/commands/bitop.d.ts +0 -13
  274. package/types/pkg/commands/bitpos.d.ts +0 -7
  275. package/types/pkg/commands/command.d.ts +0 -37
  276. package/types/pkg/commands/dbsize.d.ts +0 -7
  277. package/types/pkg/commands/decr.d.ts +0 -7
  278. package/types/pkg/commands/decrby.d.ts +0 -7
  279. package/types/pkg/commands/del.d.ts +0 -7
  280. package/types/pkg/commands/echo.d.ts +0 -7
  281. package/types/pkg/commands/eval.d.ts +0 -7
  282. package/types/pkg/commands/evalsha.d.ts +0 -7
  283. package/types/pkg/commands/exists.d.ts +0 -7
  284. package/types/pkg/commands/expire.d.ts +0 -7
  285. package/types/pkg/commands/expireat.d.ts +0 -7
  286. package/types/pkg/commands/flushall.d.ts +0 -9
  287. package/types/pkg/commands/flushdb.d.ts +0 -9
  288. package/types/pkg/commands/get.d.ts +0 -7
  289. package/types/pkg/commands/getbit.d.ts +0 -7
  290. package/types/pkg/commands/getrange.d.ts +0 -7
  291. package/types/pkg/commands/getset.d.ts +0 -7
  292. package/types/pkg/commands/hdel.d.ts +0 -7
  293. package/types/pkg/commands/hexists.d.ts +0 -7
  294. package/types/pkg/commands/hget.d.ts +0 -7
  295. package/types/pkg/commands/hgetall.d.ts +0 -7
  296. package/types/pkg/commands/hincrby.d.ts +0 -7
  297. package/types/pkg/commands/hincrbyfloat.d.ts +0 -7
  298. package/types/pkg/commands/hkeys.d.ts +0 -7
  299. package/types/pkg/commands/hlen.d.ts +0 -7
  300. package/types/pkg/commands/hmget.d.ts +0 -15
  301. package/types/pkg/commands/hmset.d.ts +0 -9
  302. package/types/pkg/commands/hscan.d.ts +0 -24
  303. package/types/pkg/commands/hset.d.ts +0 -9
  304. package/types/pkg/commands/hsetnx.d.ts +0 -7
  305. package/types/pkg/commands/hstrlen.d.ts +0 -7
  306. package/types/pkg/commands/hvals.d.ts +0 -7
  307. package/types/pkg/commands/incr.d.ts +0 -7
  308. package/types/pkg/commands/incrby.d.ts +0 -7
  309. package/types/pkg/commands/incrbyfloat.d.ts +0 -7
  310. package/types/pkg/commands/keys.d.ts +0 -7
  311. package/types/pkg/commands/lindex.d.ts +0 -4
  312. package/types/pkg/commands/linsert.d.ts +0 -9
  313. package/types/pkg/commands/llen.d.ts +0 -7
  314. package/types/pkg/commands/lpop.d.ts +0 -7
  315. package/types/pkg/commands/lpush.d.ts +0 -7
  316. package/types/pkg/commands/lpushx.d.ts +0 -7
  317. package/types/pkg/commands/lrange.d.ts +0 -4
  318. package/types/pkg/commands/lrem.d.ts +0 -4
  319. package/types/pkg/commands/lset.d.ts +0 -4
  320. package/types/pkg/commands/ltrim.d.ts +0 -4
  321. package/types/pkg/commands/mget.d.ts +0 -7
  322. package/types/pkg/commands/mod.d.ts +0 -114
  323. package/types/pkg/commands/mset.d.ts +0 -9
  324. package/types/pkg/commands/msetnx.d.ts +0 -9
  325. package/types/pkg/commands/persist.d.ts +0 -7
  326. package/types/pkg/commands/pexpire.d.ts +0 -7
  327. package/types/pkg/commands/pexpireat.d.ts +0 -7
  328. package/types/pkg/commands/ping.d.ts +0 -7
  329. package/types/pkg/commands/psetex.d.ts +0 -7
  330. package/types/pkg/commands/pttl.d.ts +0 -7
  331. package/types/pkg/commands/publish.d.ts +0 -7
  332. package/types/pkg/commands/randomkey.d.ts +0 -7
  333. package/types/pkg/commands/rename.d.ts +0 -7
  334. package/types/pkg/commands/renamenx.d.ts +0 -7
  335. package/types/pkg/commands/rpop.d.ts +0 -7
  336. package/types/pkg/commands/rpush.d.ts +0 -7
  337. package/types/pkg/commands/rpushx.d.ts +0 -7
  338. package/types/pkg/commands/sadd.d.ts +0 -7
  339. package/types/pkg/commands/scan.d.ts +0 -17
  340. package/types/pkg/commands/scard.d.ts +0 -7
  341. package/types/pkg/commands/script_exists.d.ts +0 -7
  342. package/types/pkg/commands/script_flush.d.ts +0 -14
  343. package/types/pkg/commands/script_load.d.ts +0 -7
  344. package/types/pkg/commands/sdiff.d.ts +0 -7
  345. package/types/pkg/commands/sdiffstore.d.ts +0 -7
  346. package/types/pkg/commands/set.d.ts +0 -26
  347. package/types/pkg/commands/setbit.d.ts +0 -7
  348. package/types/pkg/commands/setex.d.ts +0 -7
  349. package/types/pkg/commands/setnx.d.ts +0 -7
  350. package/types/pkg/commands/setrange.d.ts +0 -7
  351. package/types/pkg/commands/sinter.d.ts +0 -7
  352. package/types/pkg/commands/sinterstore.d.ts +0 -7
  353. package/types/pkg/commands/sismember.d.ts +0 -7
  354. package/types/pkg/commands/smembers.d.ts +0 -7
  355. package/types/pkg/commands/smove.d.ts +0 -7
  356. package/types/pkg/commands/spop.d.ts +0 -7
  357. package/types/pkg/commands/srandmember.d.ts +0 -7
  358. package/types/pkg/commands/srem.d.ts +0 -7
  359. package/types/pkg/commands/sscan.d.ts +0 -24
  360. package/types/pkg/commands/strlen.d.ts +0 -7
  361. package/types/pkg/commands/sunion.d.ts +0 -7
  362. package/types/pkg/commands/sunionstore.d.ts +0 -7
  363. package/types/pkg/commands/time.d.ts +0 -7
  364. package/types/pkg/commands/touch.d.ts +0 -7
  365. package/types/pkg/commands/ttl.d.ts +0 -7
  366. package/types/pkg/commands/type.d.ts +0 -8
  367. package/types/pkg/commands/unlink.d.ts +0 -7
  368. package/types/pkg/commands/zadd.d.ts +0 -35
  369. package/types/pkg/commands/zcard.d.ts +0 -7
  370. package/types/pkg/commands/zcount.d.ts +0 -7
  371. package/types/pkg/commands/zincrby.d.ts +0 -7
  372. package/types/pkg/commands/zinterstore.d.ts +0 -30
  373. package/types/pkg/commands/zlexcount.d.ts +0 -7
  374. package/types/pkg/commands/zpopmax.d.ts +0 -7
  375. package/types/pkg/commands/zpopmin.d.ts +0 -7
  376. package/types/pkg/commands/zrange.d.ts +0 -35
  377. package/types/pkg/commands/zrank.d.ts +0 -7
  378. package/types/pkg/commands/zrem.d.ts +0 -7
  379. package/types/pkg/commands/zremrangebylex.d.ts +0 -7
  380. package/types/pkg/commands/zremrangebyrank.d.ts +0 -7
  381. package/types/pkg/commands/zremrangebyscore.d.ts +0 -7
  382. package/types/pkg/commands/zrevrank.d.ts +0 -7
  383. package/types/pkg/commands/zscan.d.ts +0 -24
  384. package/types/pkg/commands/zscore.d.ts +0 -7
  385. package/types/pkg/commands/zunionstore.d.ts +0 -30
  386. package/types/pkg/error.d.ts +0 -6
  387. package/types/pkg/http.d.ts +0 -54
  388. package/types/pkg/pipeline.d.ts +0 -540
  389. package/types/pkg/redis.d.ts +0 -516
  390. package/types/pkg/types.d.ts +0 -1
  391. package/types/pkg/util.d.ts +0 -1
  392. package/types/platforms/cloudflare.d.ts +0 -42
  393. package/types/platforms/fastly.d.ts +0 -45
  394. package/types/platforms/node_with_fetch.d.ts +0 -82
  395. package/types/platforms/nodejs.d.ts +0 -81
@@ -1,540 +0,0 @@
1
- import { DelCommand, ExistsCommand, FlushAllCommand, PingCommand, ScoreMember, ScriptExistsCommand, SetCommandOptions, TouchCommand, UnlinkCommand, ZAddCommandOptions, ZAddCommandOptionsWithIncr, ZRangeCommandOptions } from "./commands/mod.js";
2
- import { CommandOptions } from "./commands/command.js";
3
- import { Requester } from "./http.js";
4
- import { CommandArgs } from "./types.js";
5
- /**
6
- * Upstash REST API supports command pipelining to send multiple commands in
7
- * batch, instead of sending each command one by one and waiting for a response.
8
- * When using pipelines, several commands are sent using a single HTTP request,
9
- * and a single JSON array response is returned. Each item in the response array
10
- * corresponds to the command in the same order within the pipeline.
11
- *
12
- * **NOTE:**
13
- *
14
- * Execution of the pipeline is not atomic. Even though each command in
15
- * the pipeline will be executed in order, commands sent by other clients can
16
- * interleave with the pipeline.
17
- *
18
- * **Examples:**
19
- *
20
- * ```ts
21
- * const p = redis.pipeline()
22
- * p.set("key","value")
23
- * p.get("key")
24
- * const res = await p.exec()
25
- * ```
26
- *
27
- * You can also chain commands together
28
- * ```ts
29
- * const p = redis.pipeline()
30
- * const res = await p.set("key","value").get("key").exec()
31
- * ```
32
- *
33
- * It's not possible to infer correct types with a dynamic pipeline, so you can
34
- * override the response type manually:
35
- * ```ts
36
- * redis.pipeline()
37
- * .set("key", { greeting: "hello"})
38
- * .get("key")
39
- * .exec<["OK", { greeting: string } ]>()
40
- *
41
- * ```
42
- */
43
- export declare class Pipeline {
44
- private client;
45
- private commands;
46
- private commandOptions?;
47
- constructor(client: Requester, commandOptions?: CommandOptions<any, any>);
48
- /**
49
- * Send the pipeline request to upstash.
50
- *
51
- * Returns an array with the results of all pipelined commands.
52
- *
53
- * You can define a return type manually to make working in typescript easier
54
- * ```ts
55
- * redis.pipeline().get("key").exec<[{ greeting: string }]>()
56
- * ```
57
- */
58
- exec: <TCommandResults extends unknown[] = unknown[]>() => Promise<TCommandResults>;
59
- /**
60
- * Pushes a command into the pipelien and returns a chainable instance of the
61
- * pipeline
62
- */
63
- private chain;
64
- /**
65
- * @see https://redis.io/commands/append
66
- */
67
- append: (key: string, value: string) => this;
68
- /**
69
- * @see https://redis.io/commands/bitcount
70
- */
71
- bitcount: (key: string, start: number, end: number) => this;
72
- /**
73
- * @see https://redis.io/commands/bitop
74
- */
75
- bitop: {
76
- (op: "and" | "or" | "xor", destinationKey: string, sourceKey: string, ...sourceKeys: string[]): Pipeline;
77
- (op: "not", destinationKey: string, sourceKey: string): Pipeline;
78
- };
79
- /**
80
- * @see https://redis.io/commands/bitpos
81
- */
82
- bitpos: (key: string, start: number, end: number) => this;
83
- /**
84
- * @see https://redis.io/commands/dbsize
85
- */
86
- dbsize: () => this;
87
- /**
88
- * @see https://redis.io/commands/decr
89
- */
90
- decr: (key: string) => this;
91
- /**
92
- * @see https://redis.io/commands/decrby
93
- */
94
- decrby: (key: string, decrement: number) => this;
95
- /**
96
- * @see https://redis.io/commands/del
97
- */
98
- del: (...args: CommandArgs<typeof DelCommand>) => this;
99
- /**
100
- * @see https://redis.io/commands/echo
101
- */
102
- echo: (message: string) => this;
103
- /**
104
- * @see https://redis.io/commands/eval
105
- */
106
- eval: <TArgs extends unknown[], TData = unknown>(script: string, keys: string[], args: TArgs) => this;
107
- /**
108
- * @see https://redis.io/commands/evalsha
109
- */
110
- evalsha: <TArgs extends unknown[], TData = unknown>(sha1: string, keys: string[], args: TArgs) => this;
111
- /**
112
- * @see https://redis.io/commands/exists
113
- */
114
- exists: (...args: CommandArgs<typeof ExistsCommand>) => this;
115
- /**
116
- * @see https://redis.io/commands/expire
117
- */
118
- expire: (key: string, seconds: number) => this;
119
- /**
120
- * @see https://redis.io/commands/expireat
121
- */
122
- expireat: (key: string, unix: number) => this;
123
- /**
124
- * @see https://redis.io/commands/flushall
125
- */
126
- flushall: (args?: CommandArgs<typeof FlushAllCommand>) => this;
127
- /**
128
- * @see https://redis.io/commands/flushdb
129
- */
130
- flushdb: (opts?: {
131
- async?: boolean | undefined;
132
- } | undefined) => this;
133
- /**
134
- * @see https://redis.io/commands/get
135
- */
136
- get: <TData>(key: string) => this;
137
- /**
138
- * @see https://redis.io/commands/getbit
139
- */
140
- getbit: (key: string, offset: number) => this;
141
- /**
142
- * @see https://redis.io/commands/getrange
143
- */
144
- getrange: (key: string, start: number, end: number) => this;
145
- /**
146
- * @see https://redis.io/commands/getset
147
- */
148
- getset: <TData>(key: string, value: TData) => this;
149
- /**
150
- * @see https://redis.io/commands/hdel
151
- */
152
- hdel: (key: string, field: string) => this;
153
- /**
154
- * @see https://redis.io/commands/hexists
155
- */
156
- hexists: (key: string, field: string) => this;
157
- /**
158
- * @see https://redis.io/commands/hget
159
- */
160
- hget: <TData>(key: string, field: string) => this;
161
- /**
162
- * @see https://redis.io/commands/hgetall
163
- */
164
- hgetall: <TData extends Record<string, unknown>>(key: string) => this;
165
- /**
166
- * @see https://redis.io/commands/hincrby
167
- */
168
- hincrby: (key: string, field: string, increment: number) => this;
169
- /**
170
- * @see https://redis.io/commands/hincrbyfloat
171
- */
172
- hincrbyfloat: (key: string, field: string, increment: number) => this;
173
- /**
174
- * @see https://redis.io/commands/hkeys
175
- */
176
- hkeys: (key: string) => this;
177
- /**
178
- * @see https://redis.io/commands/hlen
179
- */
180
- hlen: (key: string) => this;
181
- /**
182
- * @see https://redis.io/commands/hmget
183
- */
184
- hmget: <TData extends Record<string, unknown>>(key: string, ...fields: string[]) => this;
185
- /**
186
- * @see https://redis.io/commands/hmset
187
- */
188
- hmset: <TData>(key: string, kv: {
189
- [field: string]: TData;
190
- }) => this;
191
- /**
192
- * @see https://redis.io/commands/hscan
193
- */
194
- hscan: (key: string, cursor: number, cmdOpts?: import("./commands/scan.js").ScanCommandOptions | undefined) => this;
195
- /**
196
- * @see https://redis.io/commands/hset
197
- */
198
- hset: <TData>(key: string, kv: {
199
- [field: string]: TData;
200
- }) => this;
201
- /**
202
- * @see https://redis.io/commands/hsetnx
203
- */
204
- hsetnx: <TData>(key: string, field: string, value: TData) => this;
205
- /**
206
- * @see https://redis.io/commands/hstrlen
207
- */
208
- hstrlen: (key: string, field: string) => this;
209
- /**
210
- * @see https://redis.io/commands/hvals
211
- */
212
- hvals: (key: string) => this;
213
- /**
214
- * @see https://redis.io/commands/incr
215
- */
216
- incr: (key: string) => this;
217
- /**
218
- * @see https://redis.io/commands/incrby
219
- */
220
- incrby: (key: string, value: number) => this;
221
- /**
222
- * @see https://redis.io/commands/incrbyfloat
223
- */
224
- incrbyfloat: (key: string, value: number) => this;
225
- /**
226
- * @see https://redis.io/commands/keys
227
- */
228
- keys: (pattern: string) => this;
229
- /**
230
- * @see https://redis.io/commands/lindex
231
- */
232
- lindex: (key: string, index: number) => this;
233
- /**
234
- * @see https://redis.io/commands/linsert
235
- */
236
- linsert: <TData>(key: string, direction: "before" | "after", pivot: TData, value: TData) => Pipeline;
237
- /**
238
- * @see https://redis.io/commands/llen
239
- */
240
- llen: (key: string) => this;
241
- /**
242
- * @see https://redis.io/commands/lpop
243
- */
244
- lpop: <TData>(key: string) => this;
245
- /**
246
- * @see https://redis.io/commands/lpush
247
- */
248
- lpush: <TData>(key: string, ...elements: TData[]) => this;
249
- /**
250
- * @see https://redis.io/commands/lpushx
251
- */
252
- lpushx: <TData>(key: string, ...elements: TData[]) => this;
253
- /**
254
- * @see https://redis.io/commands/lrange
255
- */
256
- lrange: <TResult = string>(key: string, start: number, end: number) => this;
257
- /**
258
- * @see https://redis.io/commands/lrem
259
- */
260
- lrem: <TData>(key: string, count: number, value: TData) => this;
261
- /**
262
- * @see https://redis.io/commands/lset
263
- */
264
- lset: <TData>(key: string, index: number, value: TData) => this;
265
- /**
266
- * @see https://redis.io/commands/ltrim
267
- */
268
- ltrim: (key: string, start: number, end: number) => this;
269
- /**
270
- * @see https://redis.io/commands/mget
271
- */
272
- mget: <TData extends unknown[]>(args_0: string, ...args_1: string[]) => this;
273
- /**
274
- * @see https://redis.io/commands/mset
275
- */
276
- mset: <TData>(kv: {
277
- [key: string]: TData;
278
- }) => this;
279
- /**
280
- * @see https://redis.io/commands/msetnx
281
- */
282
- msetnx: <TData>(kv: {
283
- [key: string]: TData;
284
- }) => this;
285
- /**
286
- * @see https://redis.io/commands/persist
287
- */
288
- persist: (key: string) => this;
289
- /**
290
- * @see https://redis.io/commands/pexpire
291
- */
292
- pexpire: (key: string, milliseconds: number) => this;
293
- /**
294
- * @see https://redis.io/commands/pexpireat
295
- */
296
- pexpireat: (key: string, unix: number) => this;
297
- /**
298
- * @see https://redis.io/commands/ping
299
- */
300
- ping: (args?: CommandArgs<typeof PingCommand>) => this;
301
- /**
302
- * @see https://redis.io/commands/psetex
303
- */
304
- psetex: <TData>(key: string, ttl: number, value: TData) => this;
305
- /**
306
- * @see https://redis.io/commands/pttl
307
- */
308
- pttl: (key: string) => this;
309
- /**
310
- * @see https://redis.io/commands/publish
311
- */
312
- publish: (channel: string, message: unknown) => this;
313
- /**
314
- * @see https://redis.io/commands/randomkey
315
- */
316
- randomkey: () => this;
317
- /**
318
- * @see https://redis.io/commands/rename
319
- */
320
- rename: (source: string, destination: string) => this;
321
- /**
322
- * @see https://redis.io/commands/renamenx
323
- */
324
- renamenx: (source: string, destination: string) => this;
325
- /**
326
- * @see https://redis.io/commands/rpop
327
- */
328
- rpop: <TData = string>(key: string) => this;
329
- /**
330
- * @see https://redis.io/commands/rpush
331
- */
332
- rpush: <TData>(key: string, ...elements: TData[]) => this;
333
- /**
334
- * @see https://redis.io/commands/rpushx
335
- */
336
- rpushx: <TData>(key: string, ...elements: TData[]) => this;
337
- /**
338
- * @see https://redis.io/commands/sadd
339
- */
340
- sadd: <TData>(key: string, ...members: TData[]) => this;
341
- /**
342
- * @see https://redis.io/commands/scan
343
- */
344
- scan: (cursor: number, opts?: import("./commands/scan.js").ScanCommandOptions | undefined) => this;
345
- /**
346
- * @see https://redis.io/commands/scard
347
- */
348
- scard: (key: string) => this;
349
- /**
350
- * @see https://redis.io/commands/script-exists
351
- */
352
- scriptExists: (...args: CommandArgs<typeof ScriptExistsCommand>) => this;
353
- /**
354
- * @see https://redis.io/commands/script-flush
355
- */
356
- scriptFlush: (opts?: import("./commands/script_flush.js").ScriptFlushCommandOptions | undefined) => this;
357
- /**
358
- * @see https://redis.io/commands/script-load
359
- */
360
- scriptLoad: (script: string) => this;
361
- sdiff: (key: string, ...keys: string[]) => this;
362
- /**
363
- * @see https://redis.io/commands/sdiffstore
364
- */
365
- sdiffstore: (destination: string, ...keys: string[]) => this;
366
- /**
367
- * @see https://redis.io/commands/set
368
- */
369
- set: <TData>(key: string, value: TData, opts?: SetCommandOptions | undefined) => this;
370
- /**
371
- * @see https://redis.io/commands/setbit
372
- */
373
- setbit: (key: string, offset: number, value: 0 | 1) => this;
374
- /**
375
- * @see https://redis.io/commands/setex
376
- */
377
- setex: <TData>(key: string, ttl: number, value: TData) => this;
378
- /**
379
- * @see https://redis.io/commands/setnx
380
- */
381
- setnx: <TData>(key: string, value: TData) => this;
382
- /**
383
- * @see https://redis.io/commands/setrange
384
- */
385
- setrange: (key: string, offset: number, value: string) => this;
386
- /**
387
- * @see https://redis.io/commands/sinter
388
- */
389
- sinter: (key: string, ...keys: string[]) => this;
390
- /**
391
- * @see https://redis.io/commands/sinterstore
392
- */
393
- sinterstore: (destination: string, key: string, ...keys: string[]) => this;
394
- /**
395
- * @see https://redis.io/commands/sismember
396
- */
397
- sismember: <TData>(key: string, member: TData) => this;
398
- /**
399
- * @see https://redis.io/commands/smembers
400
- */
401
- smembers: (key: string) => this;
402
- /**
403
- * @see https://redis.io/commands/smove
404
- */
405
- smove: <TData>(source: string, destination: string, member: TData) => this;
406
- /**
407
- * @see https://redis.io/commands/spop
408
- */
409
- spop: <TData>(key: string, count?: number | undefined) => this;
410
- /**
411
- * @see https://redis.io/commands/srandmember
412
- */
413
- srandmember: <TData>(key: string, count?: number | undefined) => this;
414
- /**
415
- * @see https://redis.io/commands/srem
416
- */
417
- srem: <TData>(key: string, ...members: TData[]) => this;
418
- /**
419
- * @see https://redis.io/commands/sscan
420
- */
421
- sscan: (key: string, cursor: number, opts?: import("./commands/scan.js").ScanCommandOptions | undefined) => this;
422
- /**
423
- * @see https://redis.io/commands/strlen
424
- */
425
- strlen: (key: string) => this;
426
- /**
427
- * @see https://redis.io/commands/sunion
428
- */
429
- sunion: (key: string, ...keys: string[]) => this;
430
- /**
431
- * @see https://redis.io/commands/sunionstore
432
- */
433
- sunionstore: (destination: string, key: string, ...keys: string[]) => this;
434
- /**
435
- * @see https://redis.io/commands/time
436
- */
437
- time: () => this;
438
- /**
439
- * @see https://redis.io/commands/touch
440
- */
441
- touch: (...args: CommandArgs<typeof TouchCommand>) => this;
442
- /**
443
- * @see https://redis.io/commands/ttl
444
- */
445
- ttl: (key: string) => this;
446
- /**
447
- * @see https://redis.io/commands/type
448
- */
449
- type: (key: string) => this;
450
- /**
451
- * @see https://redis.io/commands/unlink
452
- */
453
- unlink: (...args: CommandArgs<typeof UnlinkCommand>) => this;
454
- /**
455
- * @see https://redis.io/commands/zadd
456
- */
457
- zadd: <TData>(...args: [key: string, scoreMember: ScoreMember<TData>, ...scoreMemberPairs: ScoreMember<TData>[]] | [string, ZAddCommandOptions | ZAddCommandOptionsWithIncr, ScoreMember<TData>, ...ScoreMember<TData>[]]) => this;
458
- /**
459
- * @see https://redis.io/commands/zcard
460
- */
461
- zcard: (key: string) => this;
462
- /**
463
- * @see https://redis.io/commands/zcount
464
- */
465
- zcount: (key: string, min: string | number, max: string | number) => this;
466
- /**
467
- * @see https://redis.io/commands/zincrby
468
- */
469
- zincrby: <TData>(key: string, increment: number, member: TData) => this;
470
- /**
471
- * @see https://redis.io/commands/zinterstore
472
- */
473
- zinterstore: (destination: string, numKeys: number, keys: string[], opts?: import("./commands/zinterstore.js").ZInterStoreCommandOptions | undefined) => this;
474
- /**
475
- * @see https://redis.io/commands/zlexcount
476
- */
477
- zlexcount: (key: string, min: string, max: string) => this;
478
- /**
479
- * @see https://redis.io/commands/zpopmax
480
- */
481
- zpopmax: <TData>(key: string, count?: number | undefined) => this;
482
- /**
483
- * @see https://redis.io/commands/zpopmin
484
- */
485
- zpopmin: <TData>(key: string, count?: number | undefined) => this;
486
- /**
487
- * @see https://redis.io/commands/zrange
488
- */
489
- zrange: <TData extends unknown[]>(...args: [key: string, min: number, max: number, opts?: ZRangeCommandOptions] | [
490
- key: string,
491
- min: `(${string}` | `[${string}` | "-" | "+",
492
- max: `(${string}` | `[${string}` | "-" | "+",
493
- opts: {
494
- byLex: true;
495
- } & ZRangeCommandOptions
496
- ] | [
497
- key: string,
498
- min: number | `(${number}` | "-inf" | "+inf",
499
- max: number | `(${number}` | "-inf" | "+inf",
500
- opts: {
501
- byScore: true;
502
- } & ZRangeCommandOptions
503
- ]) => this;
504
- /**
505
- * @see https://redis.io/commands/zrank
506
- */
507
- zrank: <TData>(key: string, member: TData) => this;
508
- /**
509
- * @see https://redis.io/commands/zrem
510
- */
511
- zrem: <TData>(key: string, ...members: TData[]) => this;
512
- /**
513
- * @see https://redis.io/commands/zremrangebylex
514
- */
515
- zremrangebylex: (key: string, min: string, max: string) => this;
516
- /**
517
- * @see https://redis.io/commands/zremrangebyrank
518
- */
519
- zremrangebyrank: (key: string, start: number, stop: number) => this;
520
- /**
521
- * @see https://redis.io/commands/zremrangebyscore
522
- */
523
- zremrangebyscore: (key: string, min: number, max: number) => this;
524
- /**
525
- * @see https://redis.io/commands/zrevrank
526
- */
527
- zrevrank: <TData>(key: string, member: TData) => this;
528
- /**
529
- * @see https://redis.io/commands/zscan
530
- */
531
- zscan: (key: string, cursor: number, opts?: import("./commands/scan.js").ScanCommandOptions | undefined) => this;
532
- /**
533
- * @see https://redis.io/commands/zscore
534
- */
535
- zscore: <TData>(key: string, member: TData) => this;
536
- /**
537
- * @see https://redis.io/commands/zunionstore
538
- */
539
- zunionstore: (destination: string, numKeys: number, keys: string[], opts?: import("./commands/zunionstore.js").ZUnionStoreCommandOptions | undefined) => this;
540
- }