Exception: Redis::ProtocolError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/redis.rb

Instance Method Summary collapse

Constructor Details

#initialize(reply_type) ⇒ ProtocolError

Returns a new instance of ProtocolError.



5
6
7
8
9
10
11
12
13
# File 'lib/redis.rb', line 5

def initialize(reply_type)
  super(<<-EOS.gsub(/(?:^|\n)\s*/, " "))
  Got '#{reply_type}' as initial reply byte.
  If you're running in a multi-threaded environment, make sure you
  pass the :thread_safe option when initializing the connection.
  If you're in a forking environment, such as Unicorn, you need to
  connect to Redis after forking.
  EOS
end