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
the parameter 'px' of func 'set' does not work #1215
Comments
I don't have enough information to fully understand what's going on. Is this log from a process that is multithreaded? There are chunks of successive "pttl" lines and chunks of successive "interval" lines. That would suggest that multiple processes or threads are writing to the same log which makes it difficult to follow what's going on. If your process is multithreaded, how are you sharing the redis-py instance(s) between the threads? Your code sample above references a variable named You're running a version of redis-py that's more than 2 years old. We've made significant improvements to the library since then. |
I run my project using this command:
|
And the func |
By the way, which version of redis-py would you suggest using in production environment? |
And when i update the version of redis-py to 3.3.8, i got an error. It seems to be an issue with redis. |
I solve it by updating the version of redis-py to v3.3.8, it seems to be a problem with v.2.10.6 |
Great. Feel free to reopen if the issue comes back for some reason. |
Version:
redis-py: 2.10.6, redis: 5.0.5
Platform:
python 2.7 on macOS
Description:
the parameter 'px' of func 'set' does not work sometimes, here is my code:
logger.info('interval: %s' % interval)
res = r.set(key, 1, nx=True, px=interval)
logger.info('pttl: %s' % r.pttl(api_name))
and here is my log. i got so many 'None'. help please!
redis.log
The text was updated successfully, but these errors were encountered: