Exception: Redis::Distributed::CannotDistribute
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/redis-5.0.5/lib/redis/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.
8 9 10 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/redis-5.0.5/lib/redis/distributed.rb', line 8 def initialize(command) @command = command end |
Instance Method Details
#message ⇒ Object
12 13 14 15 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/redis-5.0.5/lib/redis/distributed.rb', line 12 def "#{@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 |