Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pooled client authentication #15

Open
zairnamlas opened this issue Feb 2, 2017 · 1 comment
Open

Pooled client authentication #15

zairnamlas opened this issue Feb 2, 2017 · 1 comment

Comments

@zairnamlas
Copy link

It may be already available in the api, but I wanted to check whether a client retrieved from pool is already authenticated.
I'm doing the AuthAsync every time after getting the client from pool which is un-necessary for already authenticated ones.

Thanks

@zairnamlas
Copy link
Author

Just randomly visited this after a long time. Forgot to put a workaround for this

Introduced the property in IRedisClient
bool IsAuthenticated { get; set; }

Setting its value to true after authentication and next time after getting it from Pool just checking if it is already true.

I hope it will help someone.

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

No branches or pull requests

1 participant