From 3ca8e8263777feed515d1b7ff91bbb439f4d9690 Mon Sep 17 00:00:00 2001 From: bryanqiu Date: Mon, 10 Apr 2023 14:18:19 +0800 Subject: [PATCH] typo fix --- cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache.go b/cache.go index ce4d6e9..62f04c8 100644 --- a/cache.go +++ b/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