Class: Collective::Collectors::Memcached
- Inherits:
-
Collective::Collector
- Object
- Collective::Collector
- Collective::Collectors::Memcached
- Defined in:
- lib/collective/collectors/memcached.rb
Instance Attribute Summary
Attributes inherited from Collective::Collector
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
#client ⇒ Object
15 16 17 |
# File 'lib/collective/collectors/memcached.rb', line 15 def client ::Dalli::Client.new(url) end |
#url ⇒ Object
19 20 21 |
# File 'lib/collective/collectors/memcached.rb', line 19 def url [:url] || ENV['MEMCACHED_URL'] end |