nestjs-redis icon indicating copy to clipboard operation
nestjs-redis copied to clipboard

Custom Client Factory

Open mjarmoc opened this issue 5 years ago • 1 comments

This PR introduces the abiilty to provide a custom instance of cache client. The intended purpose is to wrap IORedis instance in your custom instance, for example not to expose all public methods, override the default or provide custom ones.

The most radical use case would be also to replace IORedis with another Redis lib (but at some level of compatibility), so it makes the whole library, not vendor locked in the future.

On the type/semantic level, it changed the naming of the Clients Pool from misguiding RedisClient to RedisClients.

mjarmoc avatar Apr 06 '20 05:04 mjarmoc

@skunight could you take a look at it :)?

mjarmoc avatar Apr 07 '20 09:04 mjarmoc