method
prune
rails latest stable - Class:
ActiveSupport::Cache::MemoryStore
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.
prune(target_size, max_time = nil)To ensure entries fit within the specified memory prune the cache by removing the least recently accessed entries.