Method: Sequel::Plugins::Caching::ClassMethods#set_cache_ttl

Defined in:
lib/sequel/plugins/caching.rb

#set_cache_ttl(ttl) ⇒ Object

Set the time to live for the cache store, in seconds (default is 3600, # so 1 hour).



91
92
93
# File 'lib/sequel/plugins/caching.rb', line 91

def set_cache_ttl(ttl)
  @cache_ttl = ttl
end