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
This commit is contained in:
Melody Becker 2024-10-15 16:16:44 +02:00
parent b9eb4234f4
commit 79937b5325

View file

@ -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