| 1 | package Poet::Cache; ## no critic (Moose::RequireMakeImmutable) | ||
| 2 | 7 | $Poet::Cache::VERSION = '0.16'; | |
| 3 | 8 | ▶ | use Poet qw($conf $poet); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 8 | ▶ | use Method::Signatures::Simple; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 8 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 7 | extends 'CHI'; | |
| 8 | |||
| 9 | 8 | ▶ | method initialize_caching () { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
initialize_caching: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 10 | 7 | my $default_config = | |
| 11 | { defaults => { driver => 'File', root_dir => $poet->data_path("cache") } }; | ||
| 12 | 7 | my $config = $conf->get_hash( 'cache' => $default_config ); | |
| 13 | 7 | __PACKAGE__->config($config); | |
| 14 | 7 | } | |
| 15 | |||
| 16 | 7 | 1; | |
| 17 | |||
| 18 | __END__ | ||