Registry / utility / mini-moka

mini-moka

JSON →
library0.10.3rscratesunverified

A lighter edition of Moka, a fast and concurrent cache library.

# Cargo.toml [dependencies] mini-moka = "0.10.3"
INSTALL
IMPORT
SIG · MINI-MOKA
M
mini-moka
utilityrustv0.10.3
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.

Cache
use mini_moka::sync::Cache;

Create a synchronous cache with a maximum capacity and perform insert and get operations.

use mini_moka::sync::Cache; let mut cache = Cache::new(100); cache.insert("key", "value"); let v = cache.get(&"key");
Debug
Known issues
gotchaMini Moka uses a simplified eviction policy compared to Moka; may not be suitable for all caching workloads.
fix
Evaluate your caching requirements; consider using the full Moka crate if you need advanced features like time-based expiration or weighted capacity.
affects: >=0.1.0
Upgrade
Version history
0.10.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mini-moka — cargo add mini-moka · libregistry