mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-13 23:02:46 +00:00
0db43f13a6
Part of a series of refactors on GMSL.
16 lines
517 B
Go
16 lines
517 B
Go
package caching
|
|
|
|
import "github.com/matrix-org/gomatrixserverlib/fclient"
|
|
|
|
type SpaceSummaryRoomsCache interface {
|
|
GetSpaceSummary(roomID string) (r fclient.MSC2946SpacesResponse, ok bool)
|
|
StoreSpaceSummary(roomID string, r fclient.MSC2946SpacesResponse)
|
|
}
|
|
|
|
func (c Caches) GetSpaceSummary(roomID string) (r fclient.MSC2946SpacesResponse, ok bool) {
|
|
return c.SpaceSummaryRooms.Get(roomID)
|
|
}
|
|
|
|
func (c Caches) StoreSpaceSummary(roomID string, r fclient.MSC2946SpacesResponse) {
|
|
c.SpaceSummaryRooms.Set(roomID, r)
|
|
}
|