OpenResty::Backend - class factory for OpenResty backend classes
my $type = 'Pg'; # or 'PgFarm' or 'PgMocked' my $backend = OpenResty::Backend->new($type); # where $backend is a OpenResty::Backend::Pg instance.
This class serves as a class factory for the various OpenResty backend classes like OpenResty::Backend::Pg, OpenResty::Backend::PgFarm, and OpenResty::Backend::PgMocked.
$obj = OpenResty::Backend->new($type)
Creates an instance of the specified backend class (via $type).
$type
Agent Zhang (agentzh) <agentzh@yahoo.cn>
<agentzh@yahoo.cn>
OpenResty::Backend::Base, OpenResty::Backend::Pg, OpenResty::Backend::PgMocked, OpenResty::Backend::Pg, OpenResty.
To install OpenResty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenResty
CPAN shell
perl -MCPAN -e shell install OpenResty
For more information on module installation, please visit the detailed CPAN module installation guide.