Curio::Role - Role for Curio classes.
This Moo::Role provides various shortcut methods for interacting witht the underlying Curio::Factory object.
my $curio = Some::Curio::Class->fetch();
This method proxies to "fetch_curio" in Curio::Factory.
MyApp::Service::Cache->inject( $curio_object ); MyApp::Service::Cache->inject( $key, $curio_object );
This method proxies to "inject" in Curio::Factory.
my $curio_object = MyApp::Service::Cache->uninject(); my $curio_object = MyApp::Service::Cache->uninject( $key );
This method proxies to "uninject" in Curio::Factory.
my $factory = MyApp::Service::Cache->factory();
Returns the class's Curio::Factory object.
This method may also be called on instances of the class.
Calling this is equivalent to calling "find_factory" in Curio::Factory.
Sets up your class's Curio::Factory object and is automatically called when you use Curio;. This is generally not called directly by end-user code.
use Curio;
my $keys = MyApp::Service::Cache->keys(); foreach my $key (@$keys) { ... }
This method proxies to "keys" in Curio::Factory.
See "SUPPORT" in Curio.
See "AUTHORS" in Curio.
See "LICENSE" in Curio.
To install Curio, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Curio
CPAN shell
perl -MCPAN -e shell install Curio
For more information on module installation, please visit the detailed CPAN module installation guide.