Module: Cachetastic::Adapters
- Defined in:
- lib/cachetastic/adapters/base.rb,
lib/cachetastic/adapters/file.rb,
lib/cachetastic/adapters/memcached.rb,
lib/cachetastic/adapters/local_memory.rb
Defined Under Namespace
Classes: Base, File, LocalMemory, Memcached
Class Method Summary collapse
Class Method Details
.build(klass) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/cachetastic/adapters/base.rb', line 6 def build(klass) adp = klass.to_configatron(:cachetastic).adapter if adp.nil? adp = configatron.cachetastic.defaults.adapter end adp.new(klass) end |