@upstash/redis 0.0.0-ci.bc3aba1f-20221124 → 0.0.0-ci.be7e9f94d078122e4bd2813f17ad2299a236e2b8

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