Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerCache ¶
type BadgerCache struct {
// contains filtered or unexported fields
}
BadgerCache wraps BadgerDB for DNS query caching
func NewBadgerCache ¶
func NewBadgerCache(dataPath string, log logger.Logger) (*BadgerCache, error)
NewBadgerCache creates a new BadgerDB cache instance with optimized settings for embedded devices
func (*BadgerCache) Delete ¶
func (bc *BadgerCache) Delete(key string) error
Delete removes a key from the cache
func (*BadgerCache) Get ¶
func (bc *BadgerCache) Get(key string) (*CachedMsg, bool)
Get retrieves a DNS message from the cache
Click to show internal directories.
Click to hide internal directories.