diff options
Diffstat (limited to 'internal/caching/impl_inmemorylru.go')
-rw-r--r-- | internal/caching/impl_inmemorylru.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/caching/impl_inmemorylru.go b/internal/caching/impl_inmemorylru.go index e99c18d7..f05e8f3c 100644 --- a/internal/caching/impl_inmemorylru.go +++ b/internal/caching/impl_inmemorylru.go @@ -63,6 +63,15 @@ func NewInMemoryLRUCache(enablePrometheus bool) (*Caches, error) { if err != nil { return nil, err } + federationEvents, err := NewInMemoryLRUCachePartition( + FederationEventCacheName, + FederationEventCacheMutable, + FederationEventCacheMaxEntries, + enablePrometheus, + ) + if err != nil { + return nil, err + } return &Caches{ RoomVersions: roomVersions, ServerKeys: serverKeys, @@ -70,6 +79,7 @@ func NewInMemoryLRUCache(enablePrometheus bool) (*Caches, error) { RoomServerEventTypeNIDs: roomServerEventTypeNIDs, RoomServerRoomNIDs: roomServerRoomNIDs, RoomServerRoomIDs: roomServerRoomIDs, + FederationEvents: federationEvents, }, nil } |