Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Redis::CommandError: ERR wrong number of arguments for 'hset' command in ruby 2.7 and rails 6.1.3

$
0
0

Redis server v=5.0.3

target_servers.each do |server|   ls = Redis.new(host: server, port: 1111, db: 1)   if ls      ls.pipelined do        host.keys.sort.each do |hostname|          ls.hset(mk, *host[hostname].flatten)        end #loop      end # pipelined    end #ifend

When we run this code it throws below error -Redis::CommandError: ERR wrong number of arguments for 'hset' command


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>