Accepted client shape: either a real redis (node-redis v4/v5)
RedisClientType (the typical path — pass createClient(...) straight
in) or an adapter that conforms to RedisLikeClient (for ioredis,
Upstash, or test doubles). The union avoids forcing node-redis users
to write as unknown as RedisLikeClient casts on the documented path.
Accepted client shape: either a real
redis(node-redis v4/v5)RedisClientType(the typical path — passcreateClient(...)straight in) or an adapter that conforms toRedisLikeClient(forioredis, Upstash, or test doubles). The union avoids forcing node-redis users to writeas unknown as RedisLikeClientcasts on the documented path.