Module | Sequel::Plugins::Caching::ClassMethods |
In: |
lib/sequel/plugins/caching.rb
|
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. |
Copy the necessary class instance variables to the subclass.
# 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