1.5.0
LRUCache
LRUCache
is a key-value store that uses the Least Recently Used (LRU) algorithm to evict items when the cache capacity is exceeded. This implementation is written in Swift and can be used in any iOS, macOS, or tvOS project. The cache contents are automatically loaded from the initial values dictionary when initialized.
The LRUCache
is implemented as a subclass of the Cache
class. You can use its capacity
property to specify the maximum number of key-value pairs that the cache can hold. When the cache capacity is exceeded, the least recently used item is automatically evicted from the cache.
What's Changed
Full Changelog: 1.4.0...1.5.0