module Sequel::Plugins::Caching
def self.configure(model, store, opts={})
Set the cache_store and cache_ttl attributes for the given model.
def self.configure(model, store, opts={}) model.instance_eval do @cache_store = store @cache_ttl = opts[:ttl] || 3600 @cache_ignore_exceptions = opts[:ignore_exceptions] end end