getObjectsOverCapacity abstract method

Future<List<CacheObject>> getObjectsOverCapacity(
  1. int capacity
)

Gets the list of CacheObject that can be removed if the repository is over capacity.

The exact implementation is up to the repository, but implementations should return a preferred list of items. For example, the least recently accessed

Implementation

Future<List<CacheObject>> getObjectsOverCapacity(int capacity);