method

prune

prune(target_size, max_time = nil)
public

To ensure entries fit within the specified memory prune the cache by removing the least recently accessed entries.