| 1 | package Net::Async::Redis::Server::Connection; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use parent qw(IO::Async::Notifier); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | our $VERSION = '2.001'; # VERSION | |||||||||
| 9 | |||||||||||
| 10 | =head1 NAME | ||||||||||
| 11 | |||||||||||
| 12 | Net::Async::Redis::Server::Connection - represents a single connection to a server | ||||||||||
| 13 | |||||||||||
| 14 | =head1 DESCRIPTION | ||||||||||
| 15 | |||||||||||
| 16 | Best to wait until the 2.000 release for this one. | ||||||||||
| 17 | |||||||||||
| 18 | =cut | ||||||||||
| 19 | |||||||||||
| 20 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | |||||||||||
| 23 | 1 | ▶ | use Net::Async::Redis::Commands; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | |||||||||||
| 25 | sub AUTOLOAD { | ||||||||||
| 26 | 0 | ▶ | my ($self, @args) = @_; | ||||||||
|
Subroutine
AUTOLOAD: not called CC=2 SCAR=17.9
| |||||||||||
| 27 | 0 | my ($method) = our $AUTOLOAD =~ /::([^:]+)$/; | |||||||||
| 28 | 0 | my $cmd = uc $method; | |||||||||
| 29 | 0 | ▶ | if(Net::Async::Redis::Commands->can($method)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 0 | $cmd =~ tr/_/ /; | |||||||||
| 31 | 0 | return $self->request->reply(ERR => 'Unimplemented command ' . $cmd); | |||||||||
| 32 | } | ||||||||||
| 33 | 0 | return $self->request->reply(ERR => 'Unknown command ' . $cmd); | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | 1 | 1; | |||||||||
| 37 | |||||||||||
| 38 | |||||||||||