mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-24 12:41:34 +00:00
0db43f13a6
Part of a series of refactors on GMSL.
17 lines
517 B
Go
17 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)
|
|
}
|