add delete

This commit is contained in:
Max Lerebourg
2022-10-24 21:56:38 +02:00
parent 0a186cf9a9
commit 41a46c0584
3 changed files with 16 additions and 7 deletions
+1 -5
View File
@@ -51,11 +51,7 @@ func setDecisionRedisCache(clientIP string, value string, duration int64) {
}
func deleteDecisionRedisCache(clientIP string) {
// err := rdb.Del(ctx, clientIP).Err()
// if err != nil {
// logger.Info("Error, could not delete in redis cache IP")
// }
// errors are not handled
redis.Del(clientIP)
}
func DeleteDecision(clientIP string) {