File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ type noopCacheImpl struct{}
31
31
32
32
var noopCacheInst = noopCacheImpl {}
33
33
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
35
36
func NewNoopCache () CacheBackend {
36
37
return noopCacheInst
37
38
}
@@ -45,7 +46,8 @@ type persistentCacheImpl struct {
45
46
* sync.Map
46
47
}
47
48
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.
49
51
func NewPersistentCache () CacheBackend {
50
52
cb := new (persistentCacheImpl )
51
53
cb .Map = new (sync.Map )
You can’t perform that action at this time.
0 commit comments