mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +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)
|
|
}
|