maxObjects property

int maxObjects
final

The maximum number of items allowed in the cache.

Once this limit is reached, the strategy (e.g., LRU) is triggered to remove the oldest item before adding a new one.

Implementation

final int maxObjects;