Class: Collective::Collectors::Memcached

Inherits:
Collective::Collector show all
Defined in:
lib/collective/collectors/memcached.rb

Instance Attribute Summary

Attributes inherited from Collective::Collector

#options

Instance Method Summary collapse

Methods inherited from Collective::Collector

#collect!, #group, #initialize, #instrument

Methods included from Collective::Collector::DSL

#collect, #requires, #resolution

Constructor Details

This class inherits a constructor from Collective::Collector

Instance Method Details

#clientObject



15
16
17
# File 'lib/collective/collectors/memcached.rb', line 15

def client
  ::Dalli::Client.new(url)
end

#urlObject



19
20
21
# File 'lib/collective/collectors/memcached.rb', line 19

def url
  options[:url] || ENV['MEMCACHED_URL']
end