Skip to content

Commit 6cbf7f8

Browse files
committed
fixed comment
1 parent 9790bda commit 6cbf7f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cache.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ func WithJanitorInterval[K comparable, V any](d time.Duration) Option[K, V] {
150150
}
151151

152152
// New creates a new thread safe Cache.
153-
// The janitor will not be stopped which is created by this function.
153+
// The janitor will not be stopped which is created by this function. If you
154+
// want to stop the janitor gracefully, You should use the `NewContext` function
155+
// instead of this.
154156
//
155157
// There are several Cache replacement policies available with you specified any options.
156158
func New[K comparable, V any](opts ...Option[K, V]) *Cache[K, V] {

0 commit comments

Comments
 (0)