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.
bolt is a db engine based on boltdb
Index ¶
- type BoltDB
- func (db *BoltDB) Begin(write bool) error
- func (db *BoltDB) Close()
- func (db *BoltDB) Commit() error
- func (db *BoltDB) Del(keys []string) error
- func (db *BoltDB) GC() error
- func (db *BoltDB) Get(k string) (string, error)
- func (db *BoltDB) Incr(k string, by int64) (int64, error)
- func (db *BoltDB) MGet(keys []string) (data []string)
- func (db *BoltDB) MSet(data map[string]string) error
- func (db *BoltDB) Rollback() error
- func (db *BoltDB) Scan(scannerOpt kvstore.ScannerOptions) error
- func (db *BoltDB) Set(k, v string, ttl int) error
- func (db *BoltDB) Size() int64
- func (db *BoltDB) TTL(key string) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
BoltDB - represents a badger db implementation
func (*BoltDB) Scan ¶
func (db *BoltDB) 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.