Closed Zac-HD closed 6 months ago
Hi, this is not a bug. It aims to emulate redis behavior. When not supplying connection parameters - it will connect to "localhost:6389" server, which keeps a state.
This is the relevant change.
If you want a fresh instance, provide different connection parameters.
Oh, I see! That makes sense, but it'd be great to explain this in the changelog - I suspect I'm not going to be the only person to run into this.
Thanks for maintaining such a useful library 😊
Yes, you are right, someone already opened another similar issue. Do you mind updating the changelog in a way that will be clear?
Describe the bug New instances of
FakeRedis()
read data added to older instances. This is new in version 2.21.2, but a quick skim of https://github.com/cunla/fakeredis-py/compare/v2.21.1...v2.21.2 didn't show an obvious culprit.To Reproduce
(found by the https://github.com/HypothesisWorks/hypothesis/ test suite, minimized by hand)