GetBadgerCache returns the global cache as a BadgerCache if applicable.
()
| 483 | |
| 484 | // GetBadgerCache returns the global cache as a BadgerCache if applicable. |
| 485 | func GetBadgerCache() (*BadgerCache, bool) { |
| 486 | cache := GetGlobalCache() |
| 487 | badgerCache, ok := cache.(*BadgerCache) |
| 488 | |
| 489 | return badgerCache, ok |
| 490 | } |
| 491 | |
| 492 | // GetNamespacedCache returns (and initializes if needed) a cache scoped to the provided namespace. |
| 493 | // Namespaced caches live alongside the global cache but operate on their own storage so they aren't |
nothing calls this directly
no test coverage detected