Documentation
¶
Index ¶
- type KvDB
- func (kv *KvDB) Batch() *badger.WriteBatch
- func (kv *KvDB) Cancel() *badger.WriteBatch
- func (kv *KvDB) Close() error
- func (kv *KvDB) DB() *badger.DB
- func (kv *KvDB) Del(key []byte) error
- func (kv *KvDB) Discard()
- func (kv *KvDB) Exec() error
- func (kv *KvDB) Exists(key []byte) bool
- func (kv *KvDB) Flush() *badger.WriteBatch
- func (kv *KvDB) Get(key []byte) ([]byte, error)
- func (kv *KvDB) Multi() *badger.Txn
- func (kv *KvDB) Search(prefix []byte, limit uint, offset uint) ([][]byte, error)
- func (kv *KvDB) Set(key []byte, val []byte) error
- func (kv *KvDB) SetNX(key []byte, val []byte) error
- func (kv *KvDB) SetNxTx(key []byte, val []byte, txn *badger.Txn) error
- func (kv *KvDB) SetNxWb(key []byte, val []byte, wb *badger.WriteBatch) (bool, error)
- func (kv *KvDB) SetTx(key []byte, val []byte, txn *badger.Txn) error
- func (kv *KvDB) SetWb(key []byte, val []byte, wb *badger.WriteBatch) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KvDB ¶
type KvDB struct {
// contains filtered or unexported fields
}
func (*KvDB) Batch ¶
func (kv *KvDB) Batch() *badger.WriteBatch
func (*KvDB) Cancel ¶
func (kv *KvDB) Cancel() *badger.WriteBatch
func (*KvDB) Flush ¶
func (kv *KvDB) Flush() *badger.WriteBatch
func (*KvDB) SetNX ¶
Set key to hold string value if key does not exist. In that case, it is equal to SET. When key already holds a value, no operation is performed. SETNX is short for "SET if Not eXists".
Click to show internal directories.
Click to hide internal directories.