]> git.saurik.com Git - redis.git/blobdiff - utils/redis-sha1.rb
undoed all the sds hacking that lead just to random bugs and no memory saving ;)
[redis.git] / utils / redis-sha1.rb
index 54d34deab222d984adde29b3d737c7dece0c319e..6f9e045b4630e64f82d7a5ec8355aedb9b9400a0 100644 (file)
@@ -29,4 +29,7 @@ def redisSha1(opts={})
     sha1
 end
 
-p "Dataset SHA1: #{redisSha1()}"
+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)}"