You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to use several memory caches for different functions. And I found that SimpleMemoryBackend uses only one dict for all instances. I'm curious why is that? What are underwater stones there?
It looks easy to start using separate dicts for each SimpleMemoryBackend instance.
The text was updated successfully, but these errors were encountered:
AntonBezdenezhnykh
changed the title
Single instance for SimpleMemoryBackend
One dict for any SimpleMemoryBackend instances. Why is that?
Feb 4, 2021
Agree. This behavior is confusing, especially in tests when you receive some unexpected data in the cache that was put there by a previous test. It becomes difficult to write isolated tests that do some assertions about cache.
Hello, I'm trying to use several memory caches for different functions. And I found that SimpleMemoryBackend uses only one dict for all instances. I'm curious why is that? What are underwater stones there?
It looks easy to start using separate dicts for each SimpleMemoryBackend instance.
The text was updated successfully, but these errors were encountered: