X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b32627cdc10c2f3f6d08ea75b705b85d1de6b46d..ab193fe452de9aa7cb96a937ce15df2c675a47c1:/utils/redis-sha1.rb diff --git a/utils/redis-sha1.rb b/utils/redis-sha1.rb index a50f5610..24498e25 100644 --- a/utils/redis-sha1.rb +++ b/utils/redis-sha1.rb @@ -47,5 +47,6 @@ end host = ARGV[0] || "127.0.0.1" port = ARGV[1] || "6379" -puts "Performing SHA1 of Redis server #{host} #{port}" -p "Dataset SHA1: #{redisSha1(:host => host, :port => port.to_i)}" +db = ARGV[2] || "0" +puts "Performing SHA1 of Redis server #{host} #{port} DB: #{db}" +p "Dataset SHA1: #{redisSha1(:host => host, :port => port.to_i, :db => db)}"