| 1 | package Mason::Plugin::Cache::Filters; | ||||||||||
| 2 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | $Mason::Plugin::Cache::Filters::VERSION = '0.05'; | |||||||||
| 4 | } | ||||||||||
| 5 | 1 | ▶ | use Mason::PluginRole; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | method Cache ( $key, $set_options, %cache_options ) { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=2 SCAR=7.0
| |||||||||||
| 8 | 4 | ▶ | $key = 'Default' if !defined($key); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 9 | Mason::DynamicFilter->new( | ||||||||||
| 10 | 8 | ▶ | filter => sub { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 8 | $self->cache(%cache_options)->compute( $key, $_[0], $set_options ); | |||||||||
| 12 | } | ||||||||||
| 13 | 4 | ); | |||||||||
| 14 | 1 | } | |||||||||
| 15 | |||||||||||
| 16 | 1 | 1; | |||||||||