module Sequel::Plugins::Caching

def self.configure(model, store, opts={})

If the :ttl option is not given, 3600 seconds is the default.
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