Sha256: 3704205b9109e750d7ce77825f53eaed557a386476ed4dd9fdf706cf69de6e1c
Contents?: true
Size: 390 Bytes
Versions: 14
Compression:
Stored size: 390 Bytes
Contents
require 'redis' require 'redis-sentinel' redis = Redis.new(:master_name => "example-test", :sentinels => [ {:host => "localhost", :port => 26379}, {:host => "localhost", :port => 26380} ]) redis.set "foo", "bar" while true begin puts redis.get "foo" rescue => e puts "failed?", e end sleep 1 end
Version data entries
14 entries across 14 versions & 3 rubygems