Commit Graph

24 Commits (59e2d2694deec13aaa0062e04b5460f978967dc1)

Author SHA1 Message Date
Amber Brown a06614bd2a
UPSERT many functionality (#4644) 7 years ago
black 8b3d9b6b19 Run black. 8 years ago
Amber Brown b37c472419
Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678) 8 years ago
Amber Brown 49af402019 run isort 8 years ago
Erik Johnston 29a4066a4d Update test 9 years ago
Erik Johnston eefd9fee81 Fix up tests 9 years ago
Erik Johnston f85b6ca494 Speed up cache size calculation 9 years ago
Erik Johnston 45fd2c8942 Ensure invalidation list does not grow unboundedly 10 years ago
Erik Johnston c0d7d9d642 Rename to on_invalidate 10 years ago
Erik Johnston dc76a3e909 Make cache_context an explicit option 10 years ago
Erik Johnston ba214a5e32 Remove lru option 10 years ago
Erik Johnston 4161ff2fc4 Add concept of cache contexts 10 years ago
Mark Haines 700487a7c7 Fix flake8 warnings for tests 10 years ago
David Baker d552861346 Revert all the bits changing keys of eeverything that used LRUCaches to tuples 10 years ago
David Baker f1f8122120 Change LRUCache to be tree-based so we can delete subtrees. 10 years ago
Matthew Hodgson 6c28ac260c copyrights 10 years ago
Erik Johnston 2df8dd9b37 Move all the caches into their own package, synapse.util.caches 11 years ago
Erik Johnston 20addfa358 Change Cache to not use *args in its interface 11 years ago
Erik Johnston b8e386db59 Change Cache to not use *args in its interface 11 years ago
Erik Johnston 7eea3e356f Make @cached cache deferreds rather than the deferreds' values 11 years ago
Erik Johnston d8866d7277 Caches should be bound to instances. 11 years ago
Paul "LeoNerd" Evans 9ba6487b3f Allow a choice of LRU behaviour for Cache() by using LruCache() or OrderedDict() 11 years ago
Paul "LeoNerd" Evans 7ab9f91a60 Unit-test that Cache() key eviction is ordered 11 years ago
Paul "LeoNerd" Evans 0f86312c4c Pull out the cache logic from the @cached wrapper into its own class we can reuse 11 years ago
Paul "LeoNerd" Evans f53fcbce97 Use cache.pop() instead of a separate membership test + del [] 11 years ago
Paul "LeoNerd" Evans e76d485e29 Allow @cached-wrapped functions to have a prefill method for setting entries 11 years ago
Paul "LeoNerd" Evans ebc3db295b Take named arguments to @cached() decorator, add a 'max_entries' limit 11 years ago