| 1 | package Module::Build::Service::memcached; | ||
| 2 | { | ||
| 3 | 1 | $Module::Build::Service::memcached::VERSION = '0.91'; | |
| 4 | } | ||
| 5 | # ABSTRACT: Service implementation for memcached | ||
| 6 | |||
| 7 | 1 | ▶ | use Log::Any qw{$log}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | extends 'Module::Build::Service::Base'; | |
| 10 | 1 | with 'Module::Build::Service::Fork'; | |
| 11 | |||
| 12 | |||
| 13 | 0 | ▶ | sub _build_command { |
|
Subroutine
_build_command: not called CC=1 SCAR=6.9
| |||
| 14 | 0 | my ($self) = @_; | |
| 15 | 0 | [$self->bin, "-l", $self->listen, "-p", $self->port, "-vv"]; | |
| 16 | } | ||
| 17 | |||
| 18 | |||
| 19 | 1 | has 'listen' => (is => 'lazy'); | |
| 20 | 0 | ▶ | sub _build_listen {'127.0.0.1'} |
|
Subroutine
_build_listen: not called CC=1 SCAR=6.9
| |||
| 21 | |||
| 22 | |||
| 23 | 0 | ▶ | sub _build_path {['/usr/sbin', '/usr/local/sbin', '/usr/bin', '/usr/local/bin']} |
|
Subroutine
_build_path: not called CC=1 SCAR=6.9
| |||
| 24 | |||
| 25 | |||
| 26 | has 'port' => (is => 'lazy', | ||
| 27 | 0 | ▶ | isa => sub {$_[0] =~ m/^\d+$/}); |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 28 | 0 | ▶ | sub _build_port {'50098'} |
|
Subroutine
_build_port: not called CC=1 SCAR=6.9
| |||
| 29 | |||
| 30 | |||
| 31 | 1 | 1; | |
| 32 | |||
| 33 | __END__ | ||