class Redis
All of this craziness is necessary since redis-rb doesn’t support the old way of connecting to MONITOR since it doesn’t return the format bytes
Public Instance Methods
monitor(&block)
click to toggle source
# File lib/daikon/redis_hacks.rb, line 5 def monitor(&block) @_redis_version ||= info["redis_version"] if @_redis_version < "2" @client.call_loop_with_old_protocol(:monitor, &block) else @client.call_loop(:monitor, &block) end end