'Clear the cache until it shrinks to the requested size.
This does not completely wipe the cache, just makes sure it is under
the after_cleanup_size.'

def cleanup(self):

    while (self._value_size > self._after_cleanup_size):
        self._remove_lru()
