Optional factory that creates an IRedisClient from raw options.
When set, RedisConnection will call this factory instead of
creating an ioredis client internally. This allows swapping the Redis
driver (e.g. node-redis, Bun built-in) without changing consumer code.
The factory receives the merged RedisOptions and must return
an already-augmentedIRedisClient (e.g. via
createNodeRedisClient).
Optional factory that creates an IRedisClient from raw options.
When set, RedisConnection will call this factory instead of creating an ioredis client internally. This allows swapping the Redis driver (e.g. node-redis, Bun built-in) without changing consumer code.
The factory receives the merged RedisOptions and must return an already-augmented IRedisClient (e.g. via
createNodeRedisClient).