Build An LRU Cache In Swift
An LRU cache is a perfect little systems problem: a dictionary for O(1) lookup plus a linked list for recency. Let's build one in Swift, test it, and talk about when OrderedDictionary is the simpler app-level choice.
Read more