Commit graph

3 commits

Author SHA1 Message Date
Neil Alexander 64401efa20 Implement key caching wrapper 2020-05-14 18:47:45 +01:00
Neil Alexander 4d4446705d Use gomatrixserverlib key caching 2020-05-14 17:40:26 +01:00
Neil Alexander a466e9e9cc
LRU cache for room versions in RS query API (#976)
* Experimental LRU cache for room versions

* Don't accidentally try to type-assert nil

* Also reduce hits on query API

* Use hashicorp implementation which mutexes for us

* Define const for max cache entries

* Rename to be specifically immutable, panic if we try to mutate a cache entry

* Review comments

* Remove nil guards, give roomserver integration test a cache

* go mod tidy
2020-04-22 13:00:05 +01:00