mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
Prometheus metrics for LRU cache (#1039)
* Add prom metrics for the in-memory LRU cache * Increase cache sizes
This commit is contained in:
parent
2b5052eccf
commit
f0e0a6668f
2 changed files with 31 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue