@upstash/redis 0.0.0-ci.fb6b986f-20221006 → 0.0.0-ci.fbead4fb2ed281bdc04ec90c263e6380eed1465b-20251021062126

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