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:
parent
b9eb4234f4
commit
79937b5325
1 changed files with 2 additions and 0 deletions
2
storage/cache/cache.go
vendored
2
storage/cache/cache.go
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue