This commit is contained in:
bryanqiu 2023-04-10 14:18:19 +08:00
parent 701a93b10b
commit 3ca8e82637

View File

@ -157,7 +157,7 @@ func (c *localCacher[T]) GetFromCache(id string, options ...Option) (t *T, err e
if c.cacheDuration.Nanoseconds() > 0 {
var earliestCreateTime = time.Now().Add(-c.cacheDuration)
if a.CreateTime.Before(earliestCreateTime) {
log.Infof("app(%s) is in redis cache but expired", id)
log.Infof("cache(%s) is in redis cache but expired", id)
//TODO: cocurrent
delete(c.cacheItems, id)
return nil, ErrNotFound