summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-cache/v2/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/codeberg.org/gruf/go-cache/v2/cache.go')
-rw-r--r--vendor/codeberg.org/gruf/go-cache/v2/cache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/codeberg.org/gruf/go-cache/v2/cache.go b/vendor/codeberg.org/gruf/go-cache/v2/cache.go
index 89ad314ee..b0d697687 100644
--- a/vendor/codeberg.org/gruf/go-cache/v2/cache.go
+++ b/vendor/codeberg.org/gruf/go-cache/v2/cache.go
@@ -61,7 +61,7 @@ type Cache[Key comparable, Value any] interface {
// New returns a new initialized Cache.
func New[K comparable, V any]() Cache[K, V] {
- c := TTLCache[K, V]{}
+ c := &TTLCache[K, V]{}
c.Init()
- return &c
+ return c
}