lib/garcon/utility/memstash.rb
# The maximum number of seconds an element can exist in the cache
# regardless of use. The element expires at this limit and will no longer
# be returned from the cache. The default value is 3600, or 1 hour. Setting
# A TTL value of 0 means no TTL eviction takes place (infinite lifetime).
The maximum number of seconds an element can exist in the cache
regardless of use. The element expires at this limit and will no longer
be returned from the cache. The default value is 3600, or 1 hour. Setting
A TTL value of 0 means no TTL eviction takes place (infinite lifetime).
The maximum number of seconds an element can exist in the cache regardless of use . The element expires at this limit and will no longer be returned from the cache . The default value is 3600 or 1 hour . Setting A TTL value of 0 means no TTL eviction takes place ( infinite lifetime ) .
def store_entry(key, entry)
      @monitor.synchronize do
        @stash.delete(key)
        @stash[key] = entry
        @expires_at[entry] = key
        shrink_if_needed
      end
    end
def store_entry ( key , entry ) @monitor . synchronize do @stash . delete ( key ) @stash [ key ] = entry @expires_at [ entry ] = key shrink_if_needed end end
The maximum number of seconds an element can exist in the cache
regardless of use.
The maximum number of seconds an element can exist in the cache regardless of use .
key
<not_specific>
entry
<not_specific>