Skip to content

Commit

Permalink
Add GetMultiple and SetMultiple to Cache interface
Browse files Browse the repository at this point in the history
Signed-off-by: Wilfried Roset <[email protected]>
  • Loading branch information
wilfriedroset committed Sep 10, 2024
1 parent a634855 commit b1f8f74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/design/1600-prometheus-relabel-external-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ type Cache[valueType any] interface {
Get(key string) (*valueType, error)
Set(key string, value *valueType, ttl time.Duration) error
Remove(key string)
GetMultiple(keys []string) ([]*valueType, error)
SetMultiple(values map[string]*valueType, ttl time.Duration) error
Clear(newSize int) error
GetCacheSize() int
}
Expand Down

0 comments on commit b1f8f74

Please sign in to comment.