module Sequel::Plugins::ActsAsCacheable

Public Class Methods

configure(model, opts={}) click to toggle source
# File lib/sequel_acts_as_cacheable.rb, line 4
def self.configure(model, opts={})
  model.instance_eval do
    @acts_as_cacheable_cache = opts[:cache]
    @acts_as_cacheable_time_to_live = opts[:time_to_live] || 3600
    @acts_as_cacheable_logger = opts[:logger]
  end
end