Module | Sequel::Plugins::Caching::ClassMethods |
In: |
lib/sequel/plugins/caching.rb
|
cache_store | [R] | The cache store object for the model, which should implement the Ruby-Memcache API |
cache_ttl | [R] | The time to live for the cache store, in seconds. |
Copy the cache_store and cache_ttl to the subclass.
# File lib/sequel/plugins/caching.rb, line 42 42: def inherited(subclass) 43: super 44: store = @cache_store 45: ttl = @cache_ttl 46: subclass.instance_eval do 47: @cache_store = store 48: @cache_ttl = ttl 49: end 50: end