Prometheus metrics for LRU cache (#1039)

* Add prom metrics for the in-memory LRU cache

* Increase cache sizes
This commit is contained in:
Neil Alexander 2020-05-15 11:27:10 +01:00 committed by GitHub
parent 2b5052eccf
commit f0e0a6668f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 5 deletions

View file

@ -1,10 +1,12 @@
package caching
import "github.com/matrix-org/gomatrixserverlib"
import (
"github.com/matrix-org/gomatrixserverlib"
)
const (
RoomVersionMaxCacheEntries = 128
ServerKeysMaxCacheEntries = 128
RoomVersionMaxCacheEntries = 1024
ServerKeysMaxCacheEntries = 1024
)
type ImmutableCache interface {