1
0
Fork 0
mirror of https://github.com/matrix-org/dendrite.git synced 2025-03-01 22:34:27 -06:00
Commit graph

2 commits

Author SHA1 Message Date
Neil Alexander bb2380c254
Allow specifying max age for caches ()
* Allow specifying max age for caches

* Evict cache entry if it's found to be stale when we call Get

* Fix bugs
2022-03-01 16:59:52 +00:00
Neil Alexander b891c00b09
Add RoomInfo cache, remove RoomServerRoomNIDsCache ()
* Add RoomInfo cache, remove RoomServerRoomNID cache, ensure caches are thread-safe

* Don't panic if the roomInfo isn't known yet

* LRU package is already threadsafe

* Use RoomInfo cache to find room version if possible in Events()

* Adding comments about RoomInfoCache safety
2020-12-16 12:15:12 +00:00