resize abstract method

Future<void> resize(
  1. int maxSize
)

Resizes the cache to the new maxSize.

If the current size exceeds maxSize, evicts entries as needed.

Implementation

Future<void> resize(int maxSize);