Documentation ¶
Overview ¶
Package cznicb provides an in-memory implementation of the KVStore interfaces using the cznic/b in-memory btree. Of note: this implementation does not have reader isolation.
Index ¶
- Constants
- func StoreConstructor(config map[string]interface{}) (store.KVStore, error)
- type Batch
- type Iterator
- type Reader
- type Store
- type Writer
- func (w *Writer) BytesSafeAfterClose() bool
- func (w *Writer) Close() error
- func (w *Writer) Delete(key []byte) error
- func (w *Writer) Get(key []byte) ([]byte, error)
- func (w *Writer) Iterator(key []byte) store.KVIterator
- func (w *Writer) NewBatch() store.KVBatch
- func (w *Writer) Set(key, val []byte) error
Constants ¶
View Source
const MAX_CONCURRENT_WRITERS = 1
View Source
const Name = "cznicb"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) BytesSafeAfterClose ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) SetMergeOperator ¶
func (s *Store) SetMergeOperator(mo store.MergeOperator)
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) BytesSafeAfterClose ¶
Click to show internal directories.
Click to hide internal directories.