LRU Cache
An implementation of a LRU cache. The cache supports put
, get
, and pop
operations,
all of which are O(1). This crate was heavily influenced by the
[LRU Cache implementation in an earlier version of Rust's std::collections crate] (https://doc.rust-lang.org/0.12.0/std/collections/lru_cache/struct.LruCache.html).
Example
Below is a simple example of how to instantiate and use a LRU cache.
extern crate lru;
use LruCache;