fix: make caching options more explicit (#2966)

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Keith Zantow
2024-06-14 18:45:48 +00:00
committed by GitHub
parent 70098e20bb
commit af3aaa0397
5 changed files with 174 additions and 21 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ func GetManager() Manager {
return manager
}
// SetManager sets the global cache manager, which is used to instantiate all caches
// SetManager sets the global cache manager, which is used to instantiate all caches.
// Setting this to nil disables caching.
func SetManager(m Manager) {
if m == nil {
manager = &bypassedCache{}