Module | Sequel::Plugins::Caching::ClassMethods
In: | lib/sequel/plugins/caching.rb

### Methods

inherited set_cache_ttl

### Attributes

cache_ignore_exceptions | [R] | If true, ignores exceptions when gettings cached records (the memcached API).
cache_store | [R] | The cache store object for the model, which should implement the Ruby-Memcache (or memcached) API
cache_ttl | [R] | The time to live for the cache store, in seconds.

### Public Instance methods

inherited(subclass)

Copy the necessary class instance variables to the subclass.

[Source]

        # File lib/sequel/plugins/caching.rb, line 62
    62:         def inherited(subclass)
    63:           super
    64:           store = @cache_store
    65:           ttl = @cache_ttl
    66:           cache_ignore_exceptions = @cache_ignore_exceptions
    67:           subclass.instance_eval do
    68:             @cache_store = store
    69:             @cache_ttl = ttl
    70:             @cache_ignore_exceptions = cache_ignore_exceptions
    71:           end
    72:         end

set_cache_ttl(ttl)

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

[Source]

        # File lib/sequel/plugins/caching.rb, line 57
    57:         def set_cache_ttl(ttl)
    58:           @cache_ttl = ttl
    59:         end

[Validate]