Method: Tml::CacheAdapters::Memcache#initialize
- Defined in:
- lib/tml/cache_adapters/memcache.rb
#initialize ⇒ Memcache
Returns a new instance of Memcache.
37 38 39 40 41 |
# File 'lib/tml/cache_adapters/memcache.rb', line 37 def initialize config = Tml.config.cache = { :namespace => config[:namespace] || 'tml', :compress => config[:compress].nil? ? true : config[:compress] } @cache = Dalli::Client.new(config[:host], ) end |