Wraps an ioredis Redis / Cluster instance with a Proxy so it conforms
to IRedisClient.
For backwards compatibility BullMQ continues to accept a raw IORedis
instance through tehe connection option, even though internally it relies
on the IRedisClient adapter interface. The returned proxy:
exposes runCommand (Lua script dispatch by name)
exposes structured-options variants of hset, set, zrange,
zrevrange, xadd, xread, xtrim, scan (backward-compatible:
they still accept native ioredis varargs if called that way)
The underlying ioredis instance is not mutated. Properties and methods
not in the override table are forwarded to the raw client via the proxy
traps, with this === target so EventEmitter / Commander internals work
normally.
Wraps an ioredis
Redis/Clusterinstance with aProxyso it conforms to IRedisClient.For backwards compatibility BullMQ continues to accept a raw
IORedisinstance through teheconnectionoption, even though internally it relies on theIRedisClientadapter interface. The returned proxy:runCommand(Lua script dispatch by name)hset,set,zrange,zrevrange,xadd,xread,xtrim,scan(backward-compatible: they still accept native ioredis varargs if called that way)pipeline()/multi()duplicate()in a new proxyThe underlying ioredis instance is not mutated. Properties and methods not in the override table are forwarded to the raw client via the proxy traps, with
this === targetso EventEmitter / Commander internals work normally.