lancep
(Lance Parker)
21
+1 for init(minimumCapacity:)
When an array/dictionary/set is used as an NSCache
alternative, you might want to evict old elements when count == capacity
.
But this cache limit could be stored elsewhere, and capacity
doesn't need to be a protocol requirement.
Related topics: