aboutsummaryrefslogtreecommitdiff
path: root/internal/caching/cache_roomversions.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-03-01 16:59:52 +0000
committerGitHub <noreply@github.com>2022-03-01 16:59:52 +0000
commitbb2380c254b65a6586137e9e0ab9e08354aa19f4 (patch)
treec2840dc80cccd762f0037ee79cb7f778d20388f6 /internal/caching/cache_roomversions.go
parent726529fe996519c93f4f329c03a968a432b0bb0e (diff)
Allow specifying max age for caches (#2239)
* Allow specifying max age for caches * Evict cache entry if it's found to be stale when we call Get * Fix bugs
Diffstat (limited to 'internal/caching/cache_roomversions.go')
-rw-r--r--internal/caching/cache_roomversions.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/caching/cache_roomversions.go b/internal/caching/cache_roomversions.go
index 0b46d3d4..92d2eab0 100644
--- a/internal/caching/cache_roomversions.go
+++ b/internal/caching/cache_roomversions.go
@@ -6,6 +6,7 @@ const (
RoomVersionCacheName = "room_versions"
RoomVersionCacheMaxEntries = 1024
RoomVersionCacheMutable = false
+ RoomVersionCacheMaxAge = CacheNoMaxAge
)
// RoomVersionsCache contains the subset of functions needed for