* Registers a key as both a routing key (`keys`) and a wire argument (`redisArgs`), * prepending `keyPrefix` when `applyPrefix` is true.
(key: RedisArgument, applyPrefix: boolean)
| 128 | * prepending `keyPrefix` when `applyPrefix` is true. |
| 129 | */ |
| 130 | #addKey(key: RedisArgument, applyPrefix: boolean) { |
| 131 | const finalKey = applyPrefix ? prefixKey(this.#keyPrefix, key) : key; |
| 132 | this.#keys.push(finalKey); |
| 133 | this.#redisArgs.push(finalKey); |
| 134 | } |
| 135 | |
| 136 | pushKey(key: RedisArgument, applyPrefix = true) { |
| 137 | this.#addKey(key, applyPrefix); |