@upstash/redis 1.3.2-alpha.0 → 1.3.3-alpha.0

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