Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFragmented = errors.New("storage fragmented")
ErrFragmented is an error that indicates this storage instance is currently fragmented and it cannot be serialized.
View Source
var ErrKeyNotFound = errors.New("key not found")
ErrKeyNotFound is an error that indicates that the requested key could not be found in the DB.
View Source
var ErrKeyTooLarge = errors.New("key too large")
ErrKeyTooLarge is an error that indicates the given key is large than the determined key size. The current maximum key length is 256.
View Source
var ErrNotImplemented = errors.New("not implemented yet")
ErrNotImplemented means that the interface implementation does not support the functionality required to fulfill the request.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface { SetConfig(*Config) SetLogger(*log.Logger) Start() error NewEntry() Entry Name() string Fork(*Config) (Engine, error) PutRaw(uint64, []byte) error Put(uint64, Entry) error GetRaw(uint64) ([]byte, error) Get(uint64) (Entry, error) GetTTL(uint64) (int64, error) GetKey(uint64) (string, error) Delete(uint64) error UpdateTTL(uint64, Entry) error Import([]byte) (Engine, error) Export() ([]byte, error) Stats() Stats Check(uint64) bool Range(func(uint64, Entry) bool) RegexMatchOnKeys(string, func(uint64, Entry) bool) error Compaction() bool Close() error }
func LoadAsPlugin ¶
Click to show internal directories.
Click to hide internal directories.