RedisServiceManager
Inherits Clustering < Reference < Object
Constants
Log = ::Log.for("redis-service-manager")
Constructors
new(service : String, redis : String, uri : String = "", ttl : Int32 = 20)
Sourcenew(service : String, redis : Redis::Client, uri : String = "", ttl : Int32 = 20, lock : Mutex = Mutex.new(:reentrant))
SourceInstance methods
cluster_ready?
Sourcecluster_size
Sourcefinalize
Sourcegenerate_version
Sourcehash_key
Sourceleader?
Sourcemaintain_registration
Check if node is registered in the cluster either join cluster or maintain registration
node_info
Sourcenode_key
Sourcenode_keys
Sourceready?
Sourcesimulate_crash
Sourcesimulate_split_brain
Sourcewatching?
is this class watching for changes to the cluster this should return true if registered returns true