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