Documentation ¶
Overview ¶
DEPRECATED: This package is deprecated and will be removed in a future release.
Index ¶
- func Open(path string)
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) Del(key []byte) error
- func (s *Storage) Get(key []byte) (value []byte, err error)
- func (s *Storage) Iterate(handler func(item *badger.Item) error, prefix []byte) error
- func (s *Storage) NewTransaction(update bool) *badger.Txn
- func (s *Storage) Set(key []byte, value Value) error
- func (s *Storage) SetWithRetries(key []byte, value Value, numRetries int) error
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage represents the main storage based on badger.DB.
func (*Storage) Iterate ¶
Iterate iterates all elements with provided prefix and processes it with the handler.
func (*Storage) NewTransaction ¶
NewTransaction creates new badger.Txn.
For read-only transactions set update flag to false.
Click to show internal directories.
Click to hide internal directories.