Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultIteratorOptions = IteratorOptions{ PrefetchValues: true, PrefetchSize: 100, Reverse: false, AllVersions: false, }
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { NewTransaction(update bool) Transaction View(fn func(txn Transaction) error) error Update(fn func(txn Transaction) error) error }
type IteratorOptions ¶
type Transaction ¶
type Transaction interface { Get(key []byte) ([]byte, error) Set(key, value []byte) error SetWithTTL(key, value []byte, ttl time.Duration) error Del(key []byte) error IncrBy(key []byte, v int64) (int64, error) IncrByFloat(key []byte, v float64) (float64, error) NewIterator(ops IteratorOptions) Iterator Commit(callback func(error)) error Discard() }
Click to show internal directories.
Click to hide internal directories.