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