Simple Flash Key-Value store
Go to file
Astro 08262fc3e9 write_value(): take value_buf for serialization from outside
the caller should know the required size of that.
2020-12-12 01:07:24 +01:00
src write_value(): take value_buf for serialization from outside 2020-12-12 01:07:24 +01:00
Cargo.toml read_value()/write_value(): put behind feature postcard-values 2020-12-11 19:13:00 +01:00
README.md README: update TODO 2020-12-11 19:54:11 +01:00

Simple Flash Key Value store

Tries to keep flash wear low by continuously appending data, automatically erasing and rewriting when full.

Store requirements

  • Reading must be possible by memory-mapping a &[u8] slice
  • Must support erase() for compaction,
  • Writing must support program() with an offset and &[u8] payload

For details see trait StoreBackend.

Ideas

  • iterator (quadratic)
  • compaction to a second backend instead on stack
  • StoreBackend-configurable erased data detection