A very naive and simple simulation of a LRU Cache. "Hits" are read immediately while "misses" require a wait of 0.2 seconds to simulate disk or network latency.
$ make lru-cache-simulation
$ ./lru-cache-simulation
A very naive and simple simulation of a LRU Cache. "Hits" are read immediately while "misses" require a wait of 0.2 seconds to simulate disk or network latency.
$ make lru-cache-simulation
$ ./lru-cache-simulation