In real-word there are very good java libraries exist like CacheBuilder, Coffeine, this is no way an alternate implementation to them, it's just for demoing LRU with simplest java data-strcture.
gopalharis / lrucache Goto Github PK
View Code? Open in Web Editor NEWA very simple LRU cache implementation in Java (not intended for production use)