Method: Redis::Connection::Hiredis#read
- Defined in:
- lib/redis/connection/hiredis.rb
#read ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/redis/connection/hiredis.rb', line 54 def read reply = @connection.read reply = CommandError.new(reply.) if reply.is_a?(RuntimeError) reply rescue Errno::EAGAIN raise TimeoutError rescue RuntimeError => err raise ProtocolError, err. end |