Versions in this module Expand all Collapse all v1 v1.1.0 Dec 18, 2025 Changes in this version + var DefaultConfig = &Config + var ErrKeyNotFound = errors.New("error: key not found") + func BackupAll(dir string) (err error) + func Close(f string) error + func CloseAll() (err error) + func Count(f string) (int, error) + func Delete(f string, key any) error + func DeleteFile(file string) error + func Get(f string, key any, value any) error + func Gets(file string, keys []any) (result [][]byte) + func Has(f string, key any) (bool, error) + func KeyToBinary(v any) ([]byte, error) + func Keys(f string, from any, limit, offset int, asc bool) ([][]byte, error) + func Set(f string, key any, value any) error + func Sets(file string, pairs []any) (err error) + func ValToBinary(v any) ([]byte, error) + type Cmd struct + KeySeek uint32 + Seek uint32 + Size uint32 + Val []byte + type Config struct + DirMode int + FileMode int + StoreMode int + SyncInterval int + type DB struct + func Open(f string, cfg *Config) (*DB, error) + func (db *DB) Close() error + func (db *DB) Count() (int, error) + func (db *DB) Delete(key any) error + func (db *DB) DeleteFile() error + func (db *DB) FileSize() (int64, error) + func (db *DB) Get(key any, value any) error + func (db *DB) Has(key any) (bool, error) + func (db *DB) Keys(from any, limit, offset int, asc bool) ([][]byte, error) + func (db *DB) KeysByPrefix(prefix []byte, limit, offset int, asc bool) ([][]byte, error) + func (db *DB) Set(key any, value any) error