Commit b955c369 authored by chenweijian's avatar chenweijian

活动

parent 8322edd2
......@@ -65,3 +65,12 @@ func IncrNumExpire(key string, num int64, expiration time.Duration) (int64, erro
}
return times, nil
}
func DelCache(key string) error {
err := RedisClient.Del(context.Background(), key).Err()
if err != nil {
mylogrus.MyLog.Errorf("DelCache key:%s, err:%s", key, err)
return err
}
return nil
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment