Documentation ¶
Index ¶
- Variables
- func Del(key []byte)
- func Get(key []byte) (value []byte)
- func Init()
- func PrefixScanKeyValue(prefix []byte, f func(key, value []byte) error)
- func PrefixUpdateKey(prefix []byte, f func(key []byte) ([]byte, error))
- func Set(key, value []byte, ttl ...time.Duration)
- func Stop()
- func Update(key []byte, f func(oldValue []byte) []byte) (exists bool)
- func UpdateWithTtl(key []byte, f func(oldValue []byte) ([]byte, time.Duration)) (exists bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *badger.DB
Functions ¶
func PrefixScanKeyValue ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.