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.