When I call the flush API, the next request fails to write to Redis.
I got these errors:
- Header:
Cache-Status: Souin; fwd=uri-miss; detail=REDIS-INSERTION-ERROR
- Log:
ERROR storages.cache.redis Impossible to set value into Redis, rueidis client is closing or unable to connect redis
I checked that right after calling DeleteMany to storer, there is additional s.surrogateStorage.Destruct() (https://github.com/darkweak/souin/blob/master/pkg/api/souin.go#L315) which calls Storage.Reset() (https://github.com/darkweak/souin/blob/master/pkg/surrogate/providers/common.go#L308-L310) which calls Provider.Close() (https://github.com/darkweak/storages/blob/main/redis/redis.go#L281-L287)
Is there something missing in the Destruct logic? It feels like this method is currently doing a "hard shutdown"
When I call the
flushAPI, the next request fails to write to Redis.I got these errors:
Cache-Status: Souin; fwd=uri-miss; detail=REDIS-INSERTION-ERRORERROR storages.cache.redis Impossible to set value into Redis, rueidis client is closing or unable to connect redisI checked that right after calling
DeleteManyto storer, there is additionals.surrogateStorage.Destruct()(https://github.com/darkweak/souin/blob/master/pkg/api/souin.go#L315) which callsStorage.Reset()(https://github.com/darkweak/souin/blob/master/pkg/surrogate/providers/common.go#L308-L310) which callsProvider.Close()(https://github.com/darkweak/storages/blob/main/redis/redis.go#L281-L287)Is there something missing in the
Destructlogic? It feels like this method is currently doing a "hard shutdown"