Versions in this module Expand all Collapse all v1 v1.3.1 May 23, 2023 Changes in this version + func CacheDelete(db BucketName, key string) error + func CacheGet(db BucketName, key string) ([]byte, error) + func CacheGetRenewExpire(db BucketName, key string, expiration time.Duration) ([]byte, error) + func CacheSet(db BucketName, key string, value interface{}) error + func CacheSetWithExpire(db BucketName, key string, value interface{}, expiration time.Duration) error + func CacheTruncate(db BucketName) error + func CacheTruncateSoon(db BucketName) error + func CacheWipeAll() error + func Delete(db BucketName, key string) error + func Get(db BucketName, key string) ([]byte, error) + func GetRenewExpire(db BucketName, key string, expiration time.Duration) ([]byte, error) + func InitAsBadgerDB() + func LoadConfig(data []byte) + func NewNotFoundError(msg string) error + func Set(db BucketName, key string, value interface{}) error + func SetWithExpire(db BucketName, key string, value interface{}, expiration time.Duration) error + func Transact(transaction func(*badger.Txn) error) error + func TransactRead(txn *badger.Txn, db BucketName, key string, v *[]byte) error + func TransactWrite(txn *badger.Txn, db BucketName, key string, value interface{}, ...) error + func View(transaction func(*badger.Txn) error) error + type BucketName int + const CACHEClientConfigs + const CACHEDevicePollingResults + const CACHEDynamicFeatures + const CACHEFlowInfo + const CACHEHContents + const CACHEHelpPages + const CACHEMailActivation + const CACHEStates + const DBCommunityFeatures + const DBFlowInfoShare + const DBNotificationFeatures + const DBNotificationFields + const DBNotificationProviders + const DBNotifications + const DBPersonalCompareViewSpecs + type KeyValueDB interface + Delete func(db BucketName, key string) error + Get func(db BucketName, key string) ([]byte, error) + GetRenewExpire func(db BucketName, key string, expiration time.Duration) ([]byte, error) + Read func(txn *badger.Txn, db BucketName, key string, v *[]byte) error + Set func(db BucketName, key string, value interface{}) error + SetWithExpire func(db BucketName, key string, value interface{}, expiration time.Duration) error + Transact func(func(*badger.Txn) error) error + Truncate func(db BucketName) error + TruncateSoon func(db BucketName) error + View func(func(txn *badger.Txn) error) error + Write func(txn *badger.Txn, db BucketName, key string, value interface{}, ...) (err error) + type NotFoundError struct + func (e *NotFoundError) Error() string