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

Struct BadgerCache

internal/cache/badger_cache.go:15–20  ·  view source on GitHub ↗

BadgerCache implements the Cache interface using Badger DB.

Source from the content-addressed store, hash-verified

13
14// BadgerCache implements the Cache interface using Badger DB.
15type BadgerCache struct {
16 db *badger.DB
17 stopGC chan struct{}
18 closeOnce sync.Once
19 closeErr error
20}
21
22// NewBadgerCache creates a new Badger-based cache.
23func NewBadgerCache(dir string) (*BadgerCache, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected