| 1 | package App::RedisTop::Component::Save; | ||||||||||
| 2 | 2 | ▶ | use base 'App::RedisTop::Component'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 4 | 1 | my $class = shift; | |||||||||
| 5 | |||||||||||
| 6 | my $self = bless { | ||||||||||
| 7 | group => 'save', | ||||||||||
| 8 | items => [ | ||||||||||
| 9 | { | ||||||||||
| 10 | name => 'changes', | ||||||||||
| 11 | 1 | ▶ | stat_key => sub { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.2
| |||||||||||
| 12 | 1 | my $redis_version = shift; | |||||||||
| 13 | 1 | ▶ | return $redis_version =~ /^2\.4/ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | ? 'changes_since_last_save' | ||||||||||
| 15 | : 'rdb_changes_since_last_save'; | ||||||||||
| 16 | }, | ||||||||||
| 17 | }, | ||||||||||
| 18 | 1 | ], | |||||||||
| 19 | width => 7, | ||||||||||
| 20 | unit => 1, | ||||||||||
| 21 | total => 1, | ||||||||||
| 22 | @_, | ||||||||||
| 23 | }, $class; | ||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 2 | 1; | |||||||||