Commit Graph

27 Commits (5dd73d029eff32668b3ca69b7fb8529fc7c58745)

Author SHA1 Message Date
Patrick Cloke bd6dc17221
Replace iteritems/itervalues/iterkeys with native versions. (#7692) 5 years ago
Amber Brown 7cb8b4bc67
Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 5 years ago
Amber Brown 32e7c9e7f2
Run Black. (#5482) 6 years ago
Erik Johnston 4f3e3ac192 Correctly match 'dict.pop' api 6 years ago
Erik Johnston 8ea887856c Don't update eviction metrics on explicit removal 6 years ago
Erik Johnston 3baf6e1667 Fix ExpiringCache.__len__ to be accurate 7 years ago
Erik Johnston 19dc676d1a Fix ExpiringCache.__len__ to be accurate 7 years ago
Erik Johnston fdd1a62e8d Add a five minute cache to get_destination_retry_timings 7 years ago
Erik Johnston 79eded1ae4 Make ExpiringCache slightly more performant 7 years ago
Erik Johnston 8601c24287 Fix some instances of ExpiringCache not expiring cache items 7 years ago
Richard van der Hoff 03751a6420 Fix some looping_call calls which were broken in #3604 7 years ago
Richard van der Hoff 667fba68f3 Run things as background processes 7 years ago
Amber Brown 49af402019 run isort 7 years ago
Amber Brown df9f72d9e5 replacing portions 7 years ago
Richard van der Hoff bc496df192 report metrics on number of cache evictions 7 years ago
Erik Johnston c72058bcc6 Use an ExpiringCache for storing registration sessions 8 years ago
Erik Johnston 3545e17f43 Add setdefault key to ExpiringCache 8 years ago
Erik Johnston f85b6ca494 Speed up cache size calculation 8 years ago
Erik Johnston 6d00213e80 Use OrderedDict in ExpiringCache 8 years ago
Erik Johnston 46aebbbcbf Add support for 'iterable' to ExpiringCache 8 years ago
Erik Johnston 73c7112433 Change CacheMetrics to be quicker 9 years ago
Mark Haines 239badea9b Use syntax that works on both py2.7 and py3 9 years ago
Erik Johnston 72165e5b77 Reraise exception 9 years ago
Erik Johnston ff2d7551c7 Correct cache miss detection 9 years ago
Erik Johnston 278d6c0527 Report size of ExpiringCache 9 years ago
Daniel Wagner-Hall d83d004ccd Fix flake8 warnings for new flake8 9 years ago
Matthew Hodgson 6c28ac260c copyrights 9 years ago
Erik Johnston 2df8dd9b37 Move all the caches into their own package, synapse.util.caches 10 years ago
Erik Johnston ccda401dbf SYN-338: Fix typo that caused the cache to throw an exception in some instances 10 years ago
Erik Johnston 964bb43fbe Fix typo in function name 10 years ago
Erik Johnston e7e20417ca ExpiringCache: purge every 1/2 interval 10 years ago
Erik Johnston 2674aeb96a Factor out ExpiringCache from StateHandler 10 years ago