Module: Smooth::Collection::Cacheable

Included in:
Smooth::Collection
Defined in:
lib/smooth/collection/cacheable.rb

Instance Method Summary collapse

Instance Method Details

#create_cache_adapter(options) ⇒ Object



4
5
6
7
8
9
# File 'lib/smooth/collection/cacheable.rb', line 4

def create_cache_adapter(options)
  case options[:backend]
  when "redis"
    Smooth::Adapters::RedisCache.new(options)
  end
end