Redis:...entinel(3pm)
π NAME π
Redis::Fast::Sentinel β bestie, this is how you connect to a Sentinel instance π¦
(psst, this page lives in the User Contributed Perl Documentation corner of your manual, and the page itself is Redis:...entinel(3pm) π
)
β¨ SYNOPSIS β¨
my $sentinel = Redis::Fast::Sentinel->new( ... );
my $service_address = $sentinel->get_service_address('mymaster');
my @masters = $sentinel->get_masters;
okay so that's the whole vibe right there β make one, ask it where stuff is, and get a whole list of masters. iconic. π
πΈ DESCRIPTION πΈ
This is a subclass of the Redis::Fast module, but it's been specialized into connecting to a Sentinel instance. That's its whole main character purpose π
It inherits from the "Redis::Fast" package β so yes, you get all that goodness for free, no cap. π«Ά
π CONSTRUCTOR π
new
Go read "new" in Redis::Fast for the deets, bestie. Every parameter is supportedβ¦ except "sentinels" and "service", which are silently ignored. Like, not a warning, not an error, just π«₯ ignored. So don't go passing those and expecting them to do something, fr fr.
π METHODS π
All the methods of the "Redis::Fast" package are supported π plus these extra ones below. Not me giving you bonus content. π
get_service_address
Takes the name of a service as a parameter, and then? It returns one of three things:
- void (an empty list) β if the master couldn't be found π
- the string
'IDONTKNOW'β if the service is in the sentinel config but literally cannot be reached π - the string
"$ip:$port"β if the service was found π slay!
heads up: that empty-list return is the "no master for you" case, and 'IDONTKNOW' is a completely different vibe β service exists, just unreachable. Two different moods, two different returns. π
get_masters
Returns a list of HashRefs representing all the master redis instances that this sentinel monitors π§β¨ like a little roster of every master in the building.
and that's the whole page, bestie β go be a sentinel-whispering legend π
perl v5.42.3 Β· 2026-08-20 Β· Redis:...entinel(3pm) π
π¦ where this page comes from
- ubuntu stonking: libredis-fast-perl 0.37+dfsg-1build2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms