-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
Support raw redis client #371
Comments
yes, it is already supported, http://niwinz.github.io/django-redis/latest/#_raw_client_access |
I don't understand why every single request for hset and hget gets closed with "it's already supported" with a link to the raw client access. At that point, why not take out |
@pbysh This issue is opened with a clear question: "can I access the raw redis client?" and the response is adecuatate for the original question. About your concern: I have expressed that im pretty reluctant to expand the default client public interface because it should satisfy the django cache backend interface in all aspects (key versioning, key prefixing etc etc...) adding redis native comand as is is not a solution, we will need make them work in the django cache backend semantics. And I also expressed my concern many times about adding more and more api to an client object that is designed to be swapeable with other backends (adding exclusive methods to client object, couples a lot the use of the cache django backend to specific backend, if you want coupling, just use a native client and do it explicit, IMHO). Your example about taking out In any case im not completly rejecting adding more methods. Im rejecting adding more methods by the unique reason like we can do it or why not?. Open a separate issue for that, give me a good rationale about adding a specific method and that use cases solves (better than using native client, reminder about behavior semantics differences) and i will consider the addition. |
In some situation, I need to use some method like
hget
,hset
(cache not provide). How can I access the raw redis client?The text was updated successfully, but these errors were encountered: