From 8d68d6b24992563dbb53bbc283cf84f250532e66 Mon Sep 17 00:00:00 2001 From: Wilfried Roset Date: Tue, 10 Sep 2024 09:52:58 +0200 Subject: [PATCH] Add GetMultiple and SetMultiple to Cache interface Signed-off-by: Wilfried Roset --- docs/design/1600-prometheus-relabel-external-cache.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/design/1600-prometheus-relabel-external-cache.md b/docs/design/1600-prometheus-relabel-external-cache.md index cce6e282cc..402384b541 100644 --- a/docs/design/1600-prometheus-relabel-external-cache.md +++ b/docs/design/1600-prometheus-relabel-external-cache.md @@ -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 }