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(key, val)
      @monitor.synchronize do
        expires_at = Time.now.to_f + @ttl_seconds
        entry = Entry.new(val, expires_at)
        store_entry(key, entry)
        val
      end
    end
def store ( key , val ) @monitor . synchronize do expires_at = Time . now . to_f + @ttl_seconds entry = Entry . new ( val , expires_at ) store_entry ( key , entry ) val 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>
val
<not_specific>