Skip to content

1.5.0

Compare
Choose a tag to compare
@0xLeif 0xLeif released this 10 Jun 23:39
· 7 commits to main since this release
5a797f4

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