class Redis::Cluster::OrchestrationCommandNotSupported
Raised when client connected to redis as cluster mode and some cluster subcommands were called.
Public Class Methods
new(command, subcommand = '')
click to toggle source
Calls superclass method
# File lib/redis/errors.rb, line 60 def initialize(command, subcommand = '') str = [command, subcommand].map(&:to_s).reject(&:empty?).join(' ').upcase msg = "#{str} command should be used with care "\ 'only by applications orchestrating Redis Cluster, like redis-trib, '\ 'and the command if used out of the right context can leave the cluster '\ 'in a wrong state or cause data loss.' super(msg) end