Module: Redis::SaneShutdown

Included in:
Redis
Defined in:
lib/beetle/redis_ext.rb,
lib/beetle/redis_ext.rb

Overview

redis 4.0.0 has a shutdown method which raises if a connection to the redis server cannot be established.

Instance Method Summary collapse

Instance Method Details

#shutdownObject



88
89
90
91
92
# File 'lib/beetle/redis_ext.rb', line 88

def shutdown
  super
rescue RedisClient::CannotConnectError
  nil
end