Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a WAL-based key-value store backed by FaultyStorage, with optional per-entry CRC32 checksums.
func NewStore ¶
func NewStore(storage *detsim.FaultyStorage, checksums bool) *Store
NewStore creates a Store. If checksums is true, each WAL entry includes a CRC32 checksum that catches torn writes and byte corruption during recovery.
func (*Store) Put ¶
Put writes a key-value pair to the WAL. Returns false if the underlying storage is full (ErrDiskFull).
Click to show internal directories.
Click to hide internal directories.