Registry / utility / freqfs

freqfs

JSON →
library0.12.0rscratesunverified

An in-memory filesystem cache layer over tokio::fs with LFU eviction.

# Cargo.toml [dependencies] freqfs = "0.12.0"
INSTALL
IMPORT
SIG · FREQFS
F
freqfs
utilityrustv0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FreqFs
use freqfs::FreqFs;

Create a FreqFS cache, write and read data.

use freqfs::FreqFs; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let cache = FreqFs::new(100); cache.write("key", b"data").await?; let data = cache.read("key").await?; println!("{:?}", data); Ok(()) }
Debug
Known issues
gotchaRequires tokio runtime
fix
Ensure you are using #[tokio::main] or similar async runtime.
affects: >=0.12.0
Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
34
Amazon
1
OpenAI (training)
1
Resources
freqfs — cargo add freqfs · libregistry