Documentation ¶
Overview ¶
Copyright 2018 The Redix Authors. All rights reserved. Use of this source code is governed by a Apache 2.0 license that can be found in the LICENSE file.
badger is a db engine based on badgerdb
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) Has(k string) bool
- 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) Scan(scannerOpt kvstore.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 OpenBadger ¶
OpenBadger - Opens the specified path
func (*BadgerDB) Scan ¶
func (db *BadgerDB) Scan(scannerOpt kvstore.ScannerOptions) error
Scan - iterate over the whole store using the handler function
Click to show internal directories.
Click to hide internal directories.