### Install lrucache-rs using pip Source: https://github.com/zaczero/lrucache-rs/blob/main/README.md This command installs the lrucache-rs package, which provides an efficient LRU cache with Python bindings. Ensure you have pip installed. ```sh pip install lrucache-rs ``` -------------------------------- ### Basic LRUCache usage in Python Source: https://github.com/zaczero/lrucache-rs/blob/main/README.md Demonstrates the basic usage of the LRUCache class from the lrucache_rs library. It shows how to initialize a cache with a maximum size, add key-value pairs, and retrieve values, including checking for expired items. ```python from lrucache_rs import LRUCache cache: LRUCache[str, int] = LRUCache(maxsize=2) cache['1'] = 1 cache['2'] = 2 cache['3'] = 3 assert cache.get('1') is None assert cache.get('2') == 2 assert cache.get('3') == 3 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.