hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Ë
 
çúh³ãó6—ddlZGd„d«ZGd„de«Zy)éNcód—eZdZdZd„Zdd„Zdd„Zd„Zd„Zd„Z    dd„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zy)ÚSentinelCommandszn
    A class containing the commands specific to redis sentinel. This class is
    to be used as a mixin.
    có@—tjtd««y)ú"Redis Sentinel's SENTINEL command.z%Use the individual sentinel_* methodsN)ÚwarningsÚwarnÚDeprecationWarning)ÚselfÚargss  õjH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\redis/commands/sentinel.pyÚsentinelzSentinelCommands.sentinel
s€ä ‰ Ô(Ð)PÓQÕRócó,—|jd|d|¬«S)zÃ
        Returns a (host, port) pair for the given ``service_name`` when return_responses is True,
        otherwise returns a boolean value that indicates if the command was successful.
        z SENTINEL GET-MASTER-ADDR-BY-NAMET)ÚonceÚreturn_responses©Úexecute_command©r
Ú service_namers   r Ú sentinel_get_master_addr_by_namez1SentinelCommands.sentinel_get_master_addr_by_names(€ð
×#Ñ#Ø .Ø ØØ-ð    $ó
ð    
rcó*—|jd||¬«S)zÅ
        Returns a dictionary containing the specified masters state, when return_responses is True,
        otherwise returns a boolean value that indicates if the command was successful.
        zSENTINEL MASTER©rrrs   r Úsentinel_masterz SentinelCommands.sentinel_masters$€ð
×#Ñ#Ø ˜|Ð>Nð$ó
ð    
rcó$—|jd«S)a1
        Returns a list of dictionaries containing each master's state.
 
        Important: This function is called by the Sentinel implementation and is
        called directly on the Redis standalone client for sentinels,
        so it doesn't support the "once" and "return_responses" options.
        zSENTINEL MASTERSr©r
s r Úsentinel_mastersz!SentinelCommands.sentinel_masters#s€ð×#Ñ#Ð$6Ó7Ð7rcó,—|jd||||«S)z,Add a new master to Sentinel to be monitoredzSENTINEL MONITORr)r
ÚnameÚipÚportÚquorums     r Úsentinel_monitorz!SentinelCommands.sentinel_monitor-s€à×#Ñ#Ð$6¸¸bÀ$ÈÓOÐOrcó&—|jd|«S)z*Remove a master from Sentinel's monitoringzSENTINEL REMOVEr)r
rs  r Úsentinel_removez SentinelCommands.sentinel_remove1s€à×#Ñ#Ð$5°tÓ<Ð<rcó*—|jd||¬«S)zº
        Returns a list of sentinels for ``service_name``, when return_responses is True,
        otherwise returns a boolean value that indicates if the command was successful.
        zSENTINEL SENTINELSrrrs   r Úsentinel_sentinelsz#SentinelCommands.sentinel_sentinels5s$€ð
×#Ñ#Ø   ,ÐAQð$ó
ð    
rcó*—|jd|||«S)z5Set Sentinel monitoring parameters for a given masterz SENTINEL SETr)r
rÚoptionÚvalues    r Ú sentinel_setzSentinelCommands.sentinel_set>s€à×#Ñ# N°D¸&À%ÓHÐHrcó&—|jd|«S)a 
        Returns a list of slaves for ``service_name``
 
        Important: This function is called by the Sentinel implementation and is
        called directly on the Redis standalone client for sentinels,
        so it doesn't support the "once" and "return_responses" options.
        zSENTINEL SLAVESr)r
rs  r Úsentinel_slavesz SentinelCommands.sentinel_slavesBs€ð×#Ñ#Ð$5°|ÓDÐDrcó*—|jd|d¬«S)aP
        This command will reset all the masters with matching name.
        The pattern argument is a glob-style pattern.
 
        The reset process clears any previous state in a master (including a
        failover in progress), and removes every slave and sentinel already
        discovered and associated with the master.
        zSENTINEL RESETT©rr)r
Úpatterns  r Úsentinel_resetzSentinelCommands.sentinel_resetLs€ð×#Ñ#Ð$4°gÀDÐ#ÓIÐIrcó&—|jd|«S)a
        Force a failover as if the master was not reachable, and without
        asking for agreement to other Sentinels (however a new version of the
        configuration will be published so that the other Sentinels will
        update their configurations).
        zSENTINEL FAILOVERr©r
Únew_master_names  r Úsentinel_failoverz"SentinelCommands.sentinel_failoverWs€ð×#Ñ#Ð$7¸ÓIÐIrcó*—|jd|d¬«S)a%
        Check if the current Sentinel configuration is able to reach the
        quorum needed to failover a master, and the majority needed to
        authorize the failover.
 
        This command should be used in monitoring systems to check if a
        Sentinel deployment is ok.
        zSENTINEL CKQUORUMTr.rr2s  r Úsentinel_ckquorumz"SentinelCommands.sentinel_ckquorum`s€ð×#Ñ#Ð$7¸ÈtÐ#ÓTÐTrcó$—|jd«S)a¸
        Force Sentinel to rewrite its configuration on disk, including the
        current Sentinel state.
 
        Normally Sentinel rewrites the configuration every time something
        changes in its state (in the context of the subset of the state which
        is persisted on disk across restart).
        However sometimes it is possible that the configuration file is lost
        because of operation errors, disk failures, package upgrade scripts or
        configuration managers. In those cases a way to to force Sentinel to
        rewrite the configuration file is handy.
 
        This command works even if the previous configuration file is
        completely missing.
        zSENTINEL FLUSHCONFIGrrs r Úsentinel_flushconfigz%SentinelCommands.sentinel_flushconfigks€ð ×#Ñ#Ð$:Ó;Ð;rN)F)Ú__name__Ú
__module__Ú __qualname__Ú__doc__r rrrr"r$r&r*r,r0r4r6r8©rr rrsO„ñò
Só
 
ó
ò8òPò=ó
òIòEò    JòJò    Uó<rrc󠇗eZdZdˆfd„ ZˆxZS)ÚAsyncSentinelCommandsc‡ó&•K—t‰||Žy­w)rN)Úsuperr )r
r Ú    __class__s  €r r zAsyncSentinelCommands.sentinelsøèø€ä ‰Ñ˜$Òùsƒ)ÚreturnN)r9r:r;r Ú __classcell__)rBs@r r?r?~s ø„÷ ñ rr?)rrr?r=rr ú<module>rEs"ðÛ÷w<ñw<ôt Ð,õ r