dendrite/common
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
..
basecomponent LRU cache for room versions in RS query API (#976) 2020-04-22 13:00:05 +01:00
caching LRU cache for room versions in RS query API (#976) 2020-04-22 13:00:05 +01:00
config Perspective key fetching, some federation room join fixes (#975) 2020-04-20 17:42:34 +01:00
http use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
keydb Perspective key fetching, some federation room join fixes (#975) 2020-04-20 17:42:34 +01:00
test Rename the typing server to EDU server (#948) 2020-03-30 15:02:20 +01:00
transactions Replace deprecated prometheus.InstrumentHandler and unsafe time.Ticker 2019-12-17 16:47:45 +00:00
consumers.go maintenance: Fix matrix-org#896 use %w format verb to wrap errors (#916) 2020-03-18 12:48:51 +00:00
eventcontent.go Allow anyone to publish rooms (#971) 2020-04-17 12:17:20 +01:00
events.go Move /room/{roomID}/state endpoints into client API (#606) (#962) 2020-04-14 18:36:08 +01:00
httpapi.go Add HTTP trace logging (#965) 2020-04-15 17:48:40 +01:00
httpapi_test.go S7evinK: basicauth metrics (#961) 2020-04-14 15:54:35 +01:00
log.go Log errors from rows.Close (#920) 2020-03-18 10:17:18 +00:00
partition_offset_table.go Log errors from rows.Close (#920) 2020-03-18 10:17:18 +00:00
postgres.go Add peer-to-peer support into Dendrite via libp2p and fetch (#880) 2020-03-06 10:23:55 +00:00
postgres_wasm.go Add peer-to-peer support into Dendrite via libp2p and fetch (#880) 2020-03-06 10:23:55 +00:00
routing.go Encode URLs properly (#728) 2019-07-03 16:38:50 +01:00
sql.go Add peer-to-peer support into Dendrite via libp2p and fetch (#880) 2020-03-06 10:23:55 +00:00
types.go Implement profile retrieval over federation (#726) 2019-08-07 00:02:12 +08:00