BadgerCache implements the Cache interface using Badger DB.
| 13 | |
| 14 | // BadgerCache implements the Cache interface using Badger DB. |
| 15 | type 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. |
| 23 | func NewBadgerCache(dir string) (*BadgerCache, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected