| 1 | package MojoX::Session::Store::File::Driver::Storable; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use base 'MojoX::Session::Store::File::Driver'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 2 | ▶ | use Storable qw(store retrieve); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 8 | 1 | my $class = shift; | |||||||||
| 9 | |||||||||||
| 10 | 1 | bless $class->SUPER::new(@_), $class; | |||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 2 | ▶ | sub freeze { | ||||||||
|
Subroutine
freeze: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 14 | 2 | my $self = shift; | |||||||||
| 15 | |||||||||||
| 16 | 2 | my($file, $ref) = @_; | |||||||||
| 17 | 2 | ▶ | $ref = \$ref unless ref $ref; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | |||||||||||
| 19 | 2 | store $ref, $file; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 2 | ▶ | sub thaw { | ||||||||
|
Subroutine
thaw: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 23 | 2 | my $self = shift; | |||||||||
| 24 | |||||||||||
| 25 | 2 | my $file = shift; | |||||||||
| 26 | |||||||||||
| 27 | 2 | retrieve $file; | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | 2 | 1; | |||||||||