Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Storage path BasePath string // Sets a limit on the size of the records MaxRecordSize *int // If true, fsync will be called on every write Async *bool // MaxSegmentSize defines the maximum size of the segments, must be >= // MaxRecordSize MaxSegmentSize *int // CompactionThreshold defines the upper bound for how large a file can be // and still be subject to compaction CompactionThreshold *int // CompactionInterval defines the how often compaction should be run. Only // one compaction at a time will be run. CompactionInterval *time.Duration Logger *log.Logger }
Config contains the configuration properties for the compacted aol store
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the kvdb store interface providing a simple key-value database engine based on an append-log.
func (*Store) Get ¶
Get returns the value associated with the key or a kvdb.NotFoundError if the key was not found, or any other error encountered
func (*Store) IsBadRequestError ¶
IsBadRequestError returns true if the error, or any of the wrapped errors is of type BadRequestError
func (*Store) IsNotFoundError ¶
IsNotFoundError returns true if the error signales that a non-existing key was requested
Click to show internal directories.
Click to hide internal directories.