mdk-memory-storage
In-memory storage backend for MDK. Implements the MdkStorageProvider trait from mdk-storage-traits.
Intended for testing and development. Data is not persisted across restarts. For production use, see mdk-sqlite-storage.
Features
- LRU (Least Recently Used) caching with configurable capacity (default: 1000 items)
- Thread-safe via
parking_lot::RwLockfor efficient read-heavy workloads - No external dependencies or setup required
Example Usage
use MdkMemoryStorage;
// Default cache size (1000 items)
let storage = default;
// Custom cache size
let storage = with_cache_size;
Changelog
All notable changes to this library are documented in the CHANGELOG.md.
State
This library is in an ALPHA state. Things that are implemented generally work, but the API may change in breaking ways.
License
This project is distributed under the MIT software license - see the LICENSE file for details, or visit https://opensource.org/licenses/MIT.