| 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 51
51: def inherited(subclass)
52: super
53: store = @cache_store
54: ttl = @cache_ttl
55: cache_ignore_exceptions = @cache_ignore_exceptions
56: subclass.instance_eval do
57: @cache_store = store
58: @cache_ttl = ttl
59: @cache_ignore_exceptions = cache_ignore_exceptions
60: end
61: end