Module filestore

Module filestore 

Source
Expand description

FileStore: file storage with write-through cache + background flusher. Port of Goโ€™s pkg/filestore/blockstore.go, blockstore_cache.go, blockstore_dbops.go.

  • Separate SQLite DB from WaveStore (matching Go).
  • 64KB parts for efficient partial reads/writes.
  • Write-through cache with periodic flush (5s default).
  • Background flusher via tokio::spawn + tokio::time::interval.

Re-exportsยง

pub use core::FileStore;
pub use core::DEFAULT_FLUSH_SECS;
pub use core::MAX_CACHE_BYTES;
pub use types::FileMeta;
pub use types::FileOpts;
pub use types::WaveFile;

Modulesยง

cache ๐Ÿ”’
Internal cache structs for FileStore.
core ๐Ÿ”’
FileStore struct and CRUD operations.
ijson ๐Ÿ”’
FileStore IJson (incremental JSON) operations.
offset_ops ๐Ÿ”’
FileStore offset-based read/write operations.
types ๐Ÿ”’
Wire types matching Goโ€™s wshrpc types for file storage.