aboutsummaryrefslogtreecommitdiff
path: root/internal/caching/caches.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-02-18 10:58:41 +0000
committerGitHub <noreply@github.com>2022-02-18 10:58:41 +0000
commit131bedc1a11135eb1f67a26389fe8f53c82c537d (patch)
tree1c66c0fde3098629948198c1d7262e559fd24921 /internal/caching/caches.go
parente1eb5807b66940490291983be905f2849539aa7f (diff)
Remove event type and state key caches (#2200)
* Don't proactively cache event types and state keys when we don't know if the transaction has persisted yet * Remove event type and state key caches altogether
Diffstat (limited to 'internal/caching/caches.go')
-rw-r--r--internal/caching/caches.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/internal/caching/caches.go b/internal/caching/caches.go
index f04d05d4..e1642a66 100644
--- a/internal/caching/caches.go
+++ b/internal/caching/caches.go
@@ -4,14 +4,12 @@ package caching
// different implementations as long as they satisfy the Cache
// interface.
type Caches struct {
- RoomVersions Cache // RoomVersionCache
- ServerKeys Cache // ServerKeyCache
- RoomServerStateKeyNIDs Cache // RoomServerNIDsCache
- RoomServerEventTypeNIDs Cache // RoomServerNIDsCache
- RoomServerRoomNIDs Cache // RoomServerNIDsCache
- RoomServerRoomIDs Cache // RoomServerNIDsCache
- RoomInfos Cache // RoomInfoCache
- FederationEvents Cache // FederationEventsCache
+ RoomVersions Cache // RoomVersionCache
+ ServerKeys Cache // ServerKeyCache
+ RoomServerRoomNIDs Cache // RoomServerNIDsCache
+ RoomServerRoomIDs Cache // RoomServerNIDsCache
+ RoomInfos Cache // RoomInfoCache
+ FederationEvents Cache // FederationEventsCache
}
// Cache is the interface that an implementation must satisfy.