mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-23 04:01:38 +00:00
13 lines
291 B
Go
13 lines
291 B
Go
|
package caching
|
||
|
|
||
|
import "github.com/matrix-org/gomatrixserverlib"
|
||
|
|
||
|
const (
|
||
|
RoomVersionMaxCacheEntries = 128
|
||
|
)
|
||
|
|
||
|
type ImmutableCache interface {
|
||
|
GetRoomVersion(roomId string) (gomatrixserverlib.RoomVersion, bool)
|
||
|
StoreRoomVersion(roomId string, roomVersion gomatrixserverlib.RoomVersion)
|
||
|
}
|