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