From 79937b5325312ef9db96a5e54667046f8a7f8bc4 Mon Sep 17 00:00:00 2001 From: mstar Date: Tue, 15 Oct 2024 16:16:44 +0200 Subject: [PATCH] Force disable cache for now Kept causing problems. Force disabling for now. It's still being created (and connected to), but every attempt to fetch data from it or set is ignored and either returns that no such data exists or as if everything is fine --- storage/cache/cache.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storage/cache/cache.go b/storage/cache/cache.go index b7b8f7a..126d897 100644 --- a/storage/cache/cache.go +++ b/storage/cache/cache.go @@ -72,6 +72,7 @@ func NewCache(maxSize int64, redisUrl *string) (*Cache, error) { } func (c *Cache) Get(key string, target any) (bool, error) { + return false, nil data, err := c.cache.Get(ctxBackground, key) if err != nil { return false, err @@ -84,6 +85,7 @@ func (c *Cache) Get(key string, target any) (bool, error) { } func (c *Cache) Set(key string, value any) error { + return nil data, err := c.encoders.Encode(value) if err != nil { return err