Skip to content

Conversation

@LeoKotschenreuther
Copy link

Sometimes one already has a redis client and it's easier or even
necessary to set it by passing it to redis-ratelimit instead of
having it initialize a new redis client. One great example where
this is really useful are unit tests where one doesn't want to run
a redis server. With the setRedisClient function one could pass
a mock that implements the same interface.

Sometimes one already has a redis client and it's easier or even
necessary to set it by passing it to redis-ratelimit instead of
having it initialize a new redis client. One great example where
this is really useful are unit tests where one doesn't want to run
a redis server. With the `setRedisClient` function one could pass
a mock that implements the same interface.
@LeoKotschenreuther LeoKotschenreuther marked this pull request as ready for review April 23, 2021 00:23
@LeoKotschenreuther
Copy link
Author

@chriskinsman Hope you find this addition useful and have time to review soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant