summaryrefslogtreecommitdiff
path: root/internal/cache/slice.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cache/slice.go')
-rw-r--r--internal/cache/slice.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/cache/slice.go b/internal/cache/slice.go
index 194f20d4b..e296a3b57 100644
--- a/internal/cache/slice.go
+++ b/internal/cache/slice.go
@@ -18,14 +18,14 @@
package cache
import (
- "codeberg.org/gruf/go-cache/v3/ttl"
+ "codeberg.org/gruf/go-cache/v3/simple"
"golang.org/x/exp/slices"
)
// SliceCache wraps a ttl.Cache to provide simple loader-callback
// functions for fetching + caching slices of objects (e.g. IDs).
type SliceCache[T any] struct {
- *ttl.Cache[string, []T]
+ *simple.Cache[string, []T]
}
// Load will attempt to load an existing slice from the cache for the given key, else calling the provided load function and caching the result.