MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / GetBadgerCache

Function GetBadgerCache

internal/cache/cache.go:485–490  ·  view source on GitHub ↗

GetBadgerCache returns the global cache as a BadgerCache if applicable.

()

Source from the content-addressed store, hash-verified

483
484// GetBadgerCache returns the global cache as a BadgerCache if applicable.
485func 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

Callers

nothing calls this directly

Calls 1

GetGlobalCacheFunction · 0.85

Tested by

no test coverage detected