diff options
author | antirez <antirez@gmail.com> | 2009-04-20 23:51:51 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2009-04-20 23:51:51 +0200 |
commit | 6208b3a77644afe5c7c28688cd6d7554a0281953 (patch) | |
tree | 964524ab45b932d1ee23612ee740eb2c63c51216 /utils/redis-sha1.rb | |
parent | 40d224a9e3df29e27e967ec2f1b9b0ecf66df50f (diff) | |
download | redis-6208b3a77644afe5c7c28688cd6d7554a0281953.tar.gz |
Non blocking replication (finally!). C-side linked lists API improved.
Diffstat (limited to 'utils/redis-sha1.rb')
-rw-r--r-- | utils/redis-sha1.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/redis-sha1.rb b/utils/redis-sha1.rb index 54d34deab..af9514b2b 100644 --- a/utils/redis-sha1.rb +++ b/utils/redis-sha1.rb @@ -29,4 +29,7 @@ def redisSha1(opts={}) sha1 end -p "Dataset SHA1: #{redisSha1()}" +host = (ARGV[0] or "127.0.0.1") +port = (ARGV[1] or "6379") +puts "Performing SHA1 of Redis server #{host} #{port}" +p "Dataset SHA1: #{redisSha1(:host => host, :port => port.to_i)}" |