Redis::Sentinel(3pm)
π NAME π
Redis::Sentinel β bestie, it's the Redis Sentinel interface π
β¨ VERSION β¨
version 2.000 β yes queen, that's the one πΈ
π¦ SYNOPSIS π¦
okay so here's the whole vibe in like four lines:
my $sentinel = Redis::Sentinel->new( ... );
my $service_address = $sentinel->get_service_address('mymaster');
my @masters = $sentinel->get_masters;
π DESCRIPTION π
So this is a subclass of the Redis module, but like, specialized π
β it's built for connecting to a Sentinel instance specifically. It inherits from the "Redis" package, no cap. π«Ά
π CONSTRUCTOR π
πΈ new
Go look at "new" in Redis.pm for the details, bestie. All parameters are supported, except for "sentinels" and "service" β those two get silently ignored π (like, they just don't do anything, no warning, nothing).
π METHODS π
Every single method from the "Redis" package is supported π plus these extra ones below:
π get_service_address
Takes the name of a service as its parameter, and gives you back one of three things:
- void (that's an empty list, okay) if the master couldn't be found π
- the string
'IDONTKNOW'if the service is in the sentinel config but cannot be reached π - the string
"$ip:$port"if the service was found β slay β¨
π get_masters
Returns a list of HashRefs representing all the master redis instances that this sentinel monitors. That's it, that's the whole thing π¦
π«Ά AUTHORS π«Ά
- Pedro Melo
<melo@cpan.org> - Damien Krotkine
<dams@cpan.org>
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2015 by Pedro Melo, Damien Krotkine.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
and that's the whole page, bestie, periodt π
okay so the tiny fine print down here says this is perl v5.36.0, dated 2023-01-14, and it's the Redis::Sentinel(3pm) page β love that for us πβ¨πΈ
π¦ where this page comes from
- debian bookworm: libredis-perl 2:2.000-1 Β· Artistic-2.0
- debian trixie: libredis-perl 2:2.000-1 Β· Artistic-2.0
- ubuntu noble: libredis-perl 2:2.000-1 Β· Artistic-2.0
- ubuntu resolute: libredis-perl 2:2.000-1 Β· Artistic-2.0
- ubuntu stonking: libredis-perl 2:2.000-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms