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.
leveldb is a db engine based on leveldb
Index ¶
- type LevelDB
- func (ldb *LevelDB) Begin(write bool) error
- func (ldb *LevelDB) Close()
- func (ldb *LevelDB) Commit() error
- func (ldb *LevelDB) Del(keys []string) error
- func (ldb *LevelDB) GC() error
- func (ldb *LevelDB) Get(k string) (string, error)
- func (ldb *LevelDB) Incr(k string, by int64) (int64, error)
- func (ldb *LevelDB) MGet(keys []string) (data []string)
- func (ldb *LevelDB) MSet(data map[string]string) error
- func (ldb *LevelDB) Rollback() error
- func (ldb *LevelDB) Scan(scannerOpt kvstore.ScannerOptions) error
- func (ldb *LevelDB) Set(k, v string, ttl int) error
- func (ldb *LevelDB) Size() int64
- func (ldb *LevelDB) TTL(key string) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelDB ¶
LevelDB - represents a leveldb db implementation
func OpenLevelDB ¶
OpenLevelDB - Opens the specified path
func (*LevelDB) Scan ¶
func (ldb *LevelDB) 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.