Exception: Redis2::Distributed::CannotDistribute
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Redis2::Distributed::CannotDistribute
- Defined in:
- lib/redis2/distributed.rb
Instance Method Summary collapse
-
#initialize(command) ⇒ CannotDistribute
constructor
A new instance of CannotDistribute.
- #message ⇒ Object
Constructor Details
#initialize(command) ⇒ CannotDistribute
Returns a new instance of CannotDistribute.
7 8 9 |
# File 'lib/redis2/distributed.rb', line 7 def initialize(command) @command = command end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/redis2/distributed.rb', line 11 def "#{@command.to_s.upcase} cannot be used in Redis2::Distributed because the keys involved need to be on the same server or because we cannot guarantee that the operation will be atomic." end |