@upstash/redis 0.0.0-ci.ec2c4106-20221122 → 0.0.0-ci.ee21c87148cceb1a3548ec2eaef164f04178a10f

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