123456789_123456789_123456789_123456789_123456789_

Exception: Redis::Distributed::CannotDistribute

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, RuntimeError
Instance Chain:
self, RuntimeError
Inherits: RuntimeError
  • Object
Defined in: lib/redis/distributed.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(command) ⇒ CannotDistribute

[ GitHub ]

  
# File 'lib/redis/distributed.rb', line 8

def initialize(command)
  @command = command
end

Instance Method Details

#message

[ GitHub ]

  
# File 'lib/redis/distributed.rb', line 12

def message
  "#{@command.to_s.upcase} cannot be used in Redis::Distributed because the keys involved need " \
    "to be on the same server or because we cannot guarantee that the operation will be atomic."
end