Skip to content

Commit 86c2459

Browse files
committed
comments!
1 parent dea4727 commit 86c2459

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cache.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ type noopCacheImpl struct{}
3131

3232
var noopCacheInst = noopCacheImpl{}
3333

34-
// NewNoopCache will return to you a cache instance that will entirely disable all caching within the client.
34+
// NewNoopCache will return to you a cache instance that will entirely disable all caching within the client. Not
35+
// recommended for production use
3536
func NewNoopCache() CacheBackend {
3637
return noopCacheInst
3738
}
@@ -45,7 +46,8 @@ type persistentCacheImpl struct {
4546
*sync.Map
4647
}
4748

48-
// NewPersistentCache returns a CacheBackend implementation that stores items indefinitely until explicitly deleted.
49+
// NewPersistentCache returns a CacheBackend implementation that stores items indefinitely until explicitly deleted. Not
50+
// recommended for production use.
4951
func NewPersistentCache() CacheBackend {
5052
cb := new(persistentCacheImpl)
5153
cb.Map = new(sync.Map)

0 commit comments

Comments
 (0)