Step through a Least-Recently-Used (LRU) cache and watch entries move, age, and get evicted. Feed it a list of operations, set the capacity, then play, step, or reset.
Operations
One op per line. GET key or PUT key value. Lines starting with # are ignored.