mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 16:21:55 -06: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)
|
|
}
|