class ActiveSupport::Cache::MemoryStore

def pruning?

Returns true if the cache is currently being pruned.
def pruning?
  @pruning
end