Documentation ¶
Index ¶
- type BadgerDB
- func (db *BadgerDB) Close()
- func (db *BadgerDB) Del(keys []string) error
- func (db *BadgerDB) GC() error
- func (db *BadgerDB) Get(k string) (string, error)
- func (db *BadgerDB) Incr(k string, by int64) (int64, error)
- func (db *BadgerDB) MGet(keys []string) (data []string)
- func (db *BadgerDB) MSet(data map[string]string) error
- func (db *BadgerDB) Name() string
- func (db *BadgerDB) Scan(scannerOpt store.ScannerOptions) error
- func (db *BadgerDB) Set(k, v string, ttl int) error
- func (db *BadgerDB) Size() int64
- func (db *BadgerDB) TTL(key string) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerDB ¶
type BadgerDB struct {
// contains filtered or unexported fields
}
BadgerDB - represents a badger db implementation
func NewBadgerDB ¶
OpenBadger - Opens the specified path
func (*BadgerDB) Scan ¶
func (db *BadgerDB) Scan(scannerOpt store.ScannerOptions) error
Scan - iterate over the whole store using the handler function
Click to show internal directories.
Click to hide internal directories.