We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When database contains expired keys, flushall() doesn't completely clean the database:
flushall()
Python 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import fakeredis >>> r = fakeredis.FakeStrictRedis() >>> r.set('test', 1) True >>> r.set('test2', 2) True >>> r.expire('test', -1) True >>> r.flushall() True >>> r.get('test2') '2'
The last sentece is expected to return None, because flushall() was executed before. However it left the test2 value around.
test2
The text was updated successfully, but these errors were encountered:
I think this is a side-effect of #135 plus the way MutableMapping implements clear. I'm working on a fix now.
clear
Sorry, something went wrong.
Handle key expiry in _ExpiringDict.__iter__
39553dc
Fixes #135 and #185.
Fixed in 39553dc.
No branches or pull requests
When database contains expired keys,
flushall()
doesn't completely clean the database:The last sentece is expected to return None, because
flushall()
was executed before. However it left thetest2
value around.The text was updated successfully, but these errors were encountered: