Skip to content

Commit

Permalink
fix doc of cleanup interval option
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed May 3, 2022
1 parent 3b52584 commit 90c1e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90c1e58

Please sign in to comment.