Documentation
¶
Index ¶
- Variables
- type Offsets
- type Options
- type Record
- type RecordType
- type Store
- func (s *Store) Backup(filePath string) error
- func (s *Store) BackupWithOptions(filePath string, newFileOptions Options) error
- func (s *Store) Close() error
- func (s *Store) Delete(key interface{}) error
- func (s *Store) Flush() error
- func (s *Store) Get(key, value interface{}) error
- func (s *Store) RebuildIndex() error
- func (s *Store) Set(key, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotExists = errors.New("not exists")
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Maximum number of concurrent reads
MaxParallelReads int
// Compression level
CompressionLevel zstd.EncoderLevel
// Memory write buffer size in bytes
MemoryBufferSize int
// Disk write buffer size in bytes
DiskBufferSize int
// contains filtered or unexported fields
}
type Record ¶
type Record struct {
Type RecordType
KeyHash [28]byte
ValueBytes []byte
}
type RecordType ¶
type RecordType uint8
const ( RecordTypeSet RecordType = iota + 1 RecordTypeDelete )
type Store ¶ added in v0.0.6
type Store struct {
// contains filtered or unexported fields
}
func OpenWithOptions ¶ added in v0.0.5
func (*Store) BackupWithOptions ¶ added in v0.0.7
func (*Store) RebuildIndex ¶ added in v0.0.10
RebuildIndex renews index from store file
Click to show internal directories.
Click to hide internal directories.