typo fix
This commit is contained in:
parent
701a93b10b
commit
3ca8e82637
2
cache.go
2
cache.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user