forked-synapse/synapse/util/caches
Richard van der Hoff 903d11c43a
Add DeferredCache.get_immediate method (#8568)
* Add `DeferredCache.get_immediate` method

A bunch of things that are currently calling `DeferredCache.get` are only
really interested in the result if it's completed. We can optimise and simplify
this case.

* Remove unused 'default' parameter to DeferredCache.get()

* another get_immediate instance
2020-10-19 15:00:12 +01:00
..
__init__.py Make LruCache register its own metrics (#8561) 2020-10-16 15:51:57 +01:00
deferred_cache.py Add DeferredCache.get_immediate method (#8568) 2020-10-19 15:00:12 +01:00
descriptors.py move DeferredCache into its own module 2020-10-14 23:38:14 +01:00
dictionary_cache.py type annotations for LruCache 2020-10-16 15:56:39 +01:00
expiringcache.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
lrucache.py Replace DeferredCache with LruCache where possible (#8563) 2020-10-19 12:20:29 +01:00
response_cache.py Add type hints to response cache. (#8507) 2020-10-09 11:35:11 -04:00
stream_change_cache.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
treecache.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
ttlcache.py Enable mypy for synapse.util.caches (#8547) 2020-10-15 11:44:39 +01:00