mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 18:49:24 -05:00
7ff22d6da4
When all entries in an `LruCache` have a size of 0 according to the provided `size_callback`, and `drop_from_cache` is called on a cache node, the node would be unlinked from the LRU linked list but remain in the cache dictionary. An assertion would be later be tripped due to the inconsistency. Avoid unintentionally calling `__len__` and use a strict `is None` check instead when unwrapping the weak reference. |
||
---|---|---|
.. | ||
__init__.py | ||
cached_call.py | ||
deferred_cache.py | ||
descriptors.py | ||
dictionary_cache.py | ||
expiringcache.py | ||
lrucache.py | ||
response_cache.py | ||
stream_change_cache.py | ||
treecache.py | ||
ttlcache.py |