From 90c1e588ece8cce8800dbc154b78d7f730a90055 Mon Sep 17 00:00:00 2001 From: motoki317 Date: Wed, 4 May 2022 02:10:42 +0900 Subject: [PATCH] fix doc of cleanup interval option --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 0185889..c3e10ad 100644 --- a/config.go +++ b/config.go @@ -84,7 +84,7 @@ func EnableStrictCoalescing() CacheOption { // Note that by default, a cache will be initialized without a cleaner. // Try tuning your cache size (and using non-map backend) before using this option. // Using cleanup interval on a cache with many items may decrease the through-put, -// since the cleaner has to take a lock to iterate through all items. +// since the cleaner has to acquire the lock to iterate through all items. func WithCleanupInterval(interval time.Duration) CacheOption { return func(c *cacheConfig) { c.cleanupInterval = interval