Contents

countLimit

The maximum number of objects the cache should hold.

Declaration

var countLimit: Int { get set }

Discussion

If 0, there is no count limit. The default value is 0.

This is not a strict limit—if the cache goes over the limit, an object in the cache could be evicted instantly, later, or possibly never, depending on the implementation details of the cache.

See Also

Managing Cache Size