Versions in this module Expand all Collapse all v0 v0.5.11 Sep 22, 2020 Changes in this version + var Permission os.FileMode = 0666 v0.5.6 Jun 17, 2020 Changes in this version + func ChangeClientNumber(in int) + func GetClient() *client.Client + type CacheNode struct + Key interface{} + Value interface{} + type LDB struct + func NewLDB(name string, cacheCap int) *LDB + func (d *LDB) Close() + func (d *LDB) LGet(chain uint64, tbName string, key []byte) []byte + func (d *LDB) LGetNext(chain uint64, tbName string, prefix []byte) (k, v []byte) + func (d *LDB) LSet(chain uint64, tbName string, key, value []byte) error + func (d *LDB) SetCache(tbName string) + func (d *LDB) SetNotDisk(tbName string, cap int) + type LRUCache struct + func NewLRUCache(cap int) *LRUCache + func (lru *LRUCache) Get(k interface{}) (v interface{}, ok bool) + func (lru *LRUCache) GetNext(preKey interface{}) (k, v interface{}, ok bool) + func (lru *LRUCache) Set(k, v interface{}) + func (lru *LRUCache) Size() int