summary refs log tree commit diff
path: root/tests/storage/test__base.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make ObservableDeferred.observe() always return deferred.Erik Johnston2019-10-301-1/+1
| | | | | | | This makes it easier to use in an async/await world. Also fixes a bug where cache descriptors would occaisonally return a raw value rather than a deferred.
* UPSERT many functionality (#4644)Amber Brown2019-02-201-0/+88
|
* Run black.black2018-08-101-4/+1
|
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
|
* run isortAmber Brown2018-07-091-4/+4
|
* Update testErik Johnston2017-07-041-1/+1
|
* Fix up testsErik Johnston2017-03-301-1/+1
|
* Speed up cache size calculationErik Johnston2017-01-171-1/+5
| | | | | | | | | | | Instead of calculating the size of the cache repeatedly, which can take a long time now that it can use a callback, instead cache the size and update that on insertion and deletion. This requires changing the cache descriptors to have two caches, one for pending deferreds and the other for the actual values. There's no reason to evict from the pending deferreds as they won't take up any more memory.
* Ensure invalidation list does not grow unboundedlyErik Johnston2016-08-191-0/+48
|
* Rename to on_invalidateErik Johnston2016-08-191-2/+2
|
* Make cache_context an explicit optionErik Johnston2016-08-191-2/+2
|
* Remove lru optionErik Johnston2016-08-191-1/+1
|
* Add concept of cache contextsErik Johnston2016-08-191-0/+66
|
* Fix flake8 warnings for testsMark Haines2016-02-191-3/+5
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-1/+1
|
* Change Cache to not use *args in its interfaceErik Johnston2015-08-071-6/+6
|
* Make @cached cache deferreds rather than the deferreds' valuesErik Johnston2015-08-061-4/+7
|
* Caches should be bound to instances.Erik Johnston2015-06-031-35/+49
| | | | | Before, caches were global and so different instances of the stores would share caches. This caused problems in the unit tests.
* Allow a choice of LRU behaviour for Cache() by using LruCache() or OrderedDict()Paul "LeoNerd" Evans2015-03-251-0/+22
|
* Unit-test that Cache() key eviction is orderedPaul "LeoNerd" Evans2015-03-251-0/+18
|
* Pull out the cache logic from the @cached wrapper into its own class we can ↵Paul "LeoNerd" Evans2015-03-201-1/+33
| | | | reuse
* Use cache.pop() instead of a separate membership test + del []Paul "LeoNerd" Evans2015-02-231-0/+7
|
* Allow @cached-wrapped functions to have a prefill method for setting entriesPaul "LeoNerd" Evans2015-02-231-0/+14
|
* Take named arguments to @cached() decorator, add a 'max_entries' limitPaul "LeoNerd" Evans2015-02-191-0/+89