lib/hcheck/checks/memcached.rb in hcheck-0.1.0 vs lib/hcheck/checks/memcached.rb in hcheck-0.1.1
- old
+ new
@@ -6,13 +6,9 @@
module Memcached
# @config { hosts, user, password }
def status(config)
client = Dalli::Client.new(config.delete(:url), config)
client.get('_')
- 'ok'
- rescue Dalli::RingError => e
- Hcheck.logger.error "[HCheck] Memcached::Error::NoServerAvailable #{e.message}"
- 'bad'
end
def self.included(_base)
require 'dalli'
end