mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-07 06:03:09 -06:00
Make federation caches mutable
This commit is contained in:
parent
da107c78da
commit
345a01ce73
|
|
@ -50,12 +50,14 @@ func NewRistrettoCache(maxCost CacheSize, enablePrometheus bool) (*Caches, error
|
||||||
MaxAge: time.Minute * 5,
|
MaxAge: time.Minute * 5,
|
||||||
},
|
},
|
||||||
FederationPDUs: &RistrettoCachePartition[int64, *gomatrixserverlib.HeaderedEvent]{
|
FederationPDUs: &RistrettoCachePartition[int64, *gomatrixserverlib.HeaderedEvent]{
|
||||||
cache: cache,
|
cache: cache,
|
||||||
Name: "federation_events_pdu",
|
Name: "federation_events_pdu",
|
||||||
|
Mutable: true,
|
||||||
},
|
},
|
||||||
FederationEDUs: &RistrettoCachePartition[int64, *gomatrixserverlib.EDU]{
|
FederationEDUs: &RistrettoCachePartition[int64, *gomatrixserverlib.EDU]{
|
||||||
cache: cache,
|
cache: cache,
|
||||||
Name: "federation_events_edu",
|
Name: "federation_events_edu",
|
||||||
|
Mutable: true,
|
||||||
},
|
},
|
||||||
SpaceSummaryRooms: &RistrettoCachePartition[string, gomatrixserverlib.MSC2946SpacesResponse]{
|
SpaceSummaryRooms: &RistrettoCachePartition[string, gomatrixserverlib.MSC2946SpacesResponse]{
|
||||||
cache: cache,
|
cache: cache,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue