Package for tracking store in-data memory using replacement cache algorithm / LRU cache. The Priority of storing or removing the data based on Min-Max heap algorithm or basic priority queue instead using OrderedDict module that provided by Python.
Features
- Zero dependencies, only implemented with Python without any external libraries
- Granularity control for TTL expiration and thread safety
- Cache inspection methods before initialization
LRUCache only works in Python version 3.10 and above, you can install it with :
pip install lruheapor, with uv package manager to faster installation :
uv pip install lruheapYou can read the fully detailed explanation about this package in here
Any contributions are much welcomed, and you can read on contribution page on how to contribute.
This package is licensed under the MIT License.