| 1 | package Net::Async::Redis::Cluster::Replica; | ||
| 2 | 5 | ▶ | use Object::Pad; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | class Net::Async::Redis::Cluster::Replica; | ||
| 4 | |||
| 5 | 5 | our $VERSION = '6.006'; # VERSION | |
| 6 | |||
| 7 | 5 | ▶ | use Scalar::Util qw(refaddr); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 5 | ▶ | use Future::AsyncAwait; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 5 | ▶ | use Log::Any qw($log); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | use overload | ||
| 12 | 0 | ▶ | '""' => sub { 'NaRedis::Cluster::Replica[id=' . shift->id . ']' }, |
|
Subroutine
BEGIN: called CC=1 SCAR=1.2
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 13 | 0 | ▶ | '0+' => sub { refaddr(shift) }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 14 | 0 | ▶ | bool => sub { 1 }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 15 | 5 | fallback => 1; | |
| 16 | |||
| 17 | 0 | ▶ | field $id:param:reader; |
|
Subroutine
id: not called CC=1 SCAR=2.6
Pod
undocumented
| |||
| 18 | 0 | ▶ | field $host:param:reader; |
|
Subroutine
host: not called CC=1 SCAR=2.6
Pod
undocumented
| |||
| 19 | 0 | ▶ | field $port:param:reader; |
|
Subroutine
port: not called CC=1 SCAR=2.6
Pod
undocumented
| |||
| 20 | |||
| 21 | 0 | ▶ | method host_port { join ':', $host, $port } |
|
Subroutine
host_port: not called CC=1 SCAR=1.2
Pod
undocumented
| |||
| 22 | |||
| 23 | 5 | 1; | |
| 24 | __END__ | ||