activesupport/lib/active_support/cache/memory_store.rb
# Preemptively iterates through all stored keys and removes the ones which have expired.
Preemptively iterates through all stored keys and removes the ones which have expired.
Preemptively iterates through all stored keys and removes the ones which have expired .
def cleanup(options = nil)
        options = merged_options(options)
        instrument(:cleanup, :size => @data.size) do
          keys = synchronize{ @data.keys }
          keys.each do |key|
            entry = @data[key]
            delete_entry(key, options) if entry && entry.expired?
          end
        end
      end
def cleanup ( options = nil ) options = merged_options ( options ) instrument ( :cleanup , :size => @data . size ) do keys = synchronize { @data . keys } keys . each do | key | entry = @data [ key ] delete_entry ( key , options ) if entry && entry . expired? end end end
Preemptively iterates through all stored keys and removes the ones which have expired.
Preemptively iterates through all stored keys and removes the ones which have expired .
options
<not_specific>