| 1 | 2 | ▶ | use 5.008; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package Data::Storage::Memory; | ||||||||||
| 6 | 2 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | $Data::Storage::Memory::VERSION = '1.102720'; | |||||||||
| 8 | } | ||||||||||
| 9 | # ABSTRACT: Base class for memory-based storages | ||||||||||
| 10 | 2 | ▶ | use parent 'Data::Storage'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 0 | ▶ | sub connect { } | ||||||||
|
Subroutine
connect: not called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub disconnect { | ||||||||
|
Subroutine
disconnect: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 14 | 0 | my $self = shift; | |||||||||
| 15 | 0 | ▶ | return unless $self->is_connected; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 0 | ▶ | $self->rollback_mode ? $self->rollback : $self->commit; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | } | ||||||||||
| 18 | 0 | ▶ | sub is_connected { 1 } | ||||||||
|
Subroutine
is_connected: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | |||||||||||
| 20 | # might implement this later using transactional hashes or some such | ||||||||||
| 21 | 0 | ▶ | sub rollback { } | ||||||||
|
Subroutine
rollback: not called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 22 | 0 | ▶ | sub commit { } | ||||||||
|
Subroutine
commit: not called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 23 | 2 | 1; | |||||||||
| 24 | |||||||||||
| 25 | |||||||||||
| 26 | __END__ | ||||||||||