Module fixed

Module fixed 

Source
Expand description

Segmented journal for fixed-size items.

§Format

Data is stored in one blob per section. Items are stored sequentially:

+--------+--------+--------+----------+
| item_0 | item_1 |   ...  | item_n-1 |
+--------+--------+--------+----------+

§Sync

Data written to Journal may not be immediately persisted to Storage. Use the sync method to force pending data to be written.

§Pruning

All data must be assigned to a section. This allows pruning entire sections (and their corresponding blobs) independently.

Structs§

Config
Configuration for the fixed segmented journal.
Journal
A segmented journal with fixed-size entries.