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