diff --git a/sentinel.go b/sentinel.go index 7cbb90bd..691d1719 100644 --- a/sentinel.go +++ b/sentinel.go @@ -182,6 +182,21 @@ func (c *SentinelClient) Reset(pattern string) *IntCmd { return cmd } +// FlushConfig forces Sentinel to rewrite its configuration on disk, including +// the current Sentinel state. +func (c *SentinelClient) FlushConfig() *StatusCmd { + cmd := NewStatusCmd("sentinel", "flushconfig") + c.Process(cmd) + return cmd +} + +// Master shows the state and info of the specified master. +func (c *SentinelClient) Master(name string) *StringStringMapCmd { + cmd := NewStringStringMapCmd("sentinel", "master", name) + c.Process(cmd) + return cmd +} + type sentinelFailover struct { sentinelAddrs []string