Welcome to the lruheap documentation! This package provides an in-memory LRU (Least Recently Used) cache implementation backed by a min-heap priority queue, along with decorator-based caching for Python functions.
Contents
- Guides
- Usage
- LRUCache class initialization
setmethodgetmethodget_dictmethodget_durationmethodget_lru_elementmethodget_capacitymethodget_cachemethodget_ttlmethodclear_allmethodclear_cache_keymethodis_emptymethodttlproperty- Special methods
@lru_cachedecorator@lru_cache_timedecorator- Enable
thread_safeparameter
- Further Examples
- API References
- Caveats
- Miscellaneous
- Roadmap