Simple Flash Key-Value store
Go to file
Astro 9153240b9b append(): break out pub fn get_bytes_used() 2020-12-11 18:53:17 +01:00
src append(): break out pub fn get_bytes_used() 2020-12-11 18:53:17 +01:00
Cargo.toml refactor for abstract StoreBackend 2020-12-11 00:29:06 +01:00
README.md no_flash: init 2020-12-11 18:07:39 +01:00

README.md

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.

TODO

  • read_int()
  • write_str()
  • automatic value coercion
  • support for floats

Ideas

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