| 1 | package Gideon::Registry; | ||
| 2 | { | ||
| 3 | 1 | $Gideon::Registry::VERSION = '0.0.3'; | |
| 4 | } | ||
| 5 | |||
| 6 | #ABSTRACT: Gideon Store Registry | ||
| 7 | |||
| 8 | 1 | my %stores; | |
| 9 | my $cache; | ||
| 10 | |||
| 11 | 0 | ▶ | sub register_store { |
|
Subroutine
register_store: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 12 | 0 | my ( $class, $name, $resource ) = @_; | |
| 13 | 0 | $stores{$name} = $resource; | |
| 14 | 0 | return $resource; | |
| 15 | } | ||
| 16 | |||
| 17 | 0 | ▶ | sub register_cache { |
|
Subroutine
register_cache: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 18 | 0 | my ( $class, $resource ) = @_; | |
| 19 | 0 | $cache = $resource; | |
| 20 | 0 | return $resource; | |
| 21 | } | ||
| 22 | |||
| 23 | 0 | ▶ | sub get_store { |
|
Subroutine
get_store: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 24 | 0 | my ( $class, $name ) = @_; | |
| 25 | 0 | return $stores{$name}; | |
| 26 | } | ||
| 27 | |||
| 28 | 0 | ▶ | sub get_cache { |
|
Subroutine
get_cache: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 29 | 0 | return $cache; | |
| 30 | } | ||
| 31 | |||
| 32 | 0 | ▶ | sub has_cache { |
|
Subroutine
has_cache: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 33 | 0 | return defined $cache; | |
| 34 | } | ||
| 35 | |||
| 36 | 1 | 1; | |
| 37 | |||
| 38 | __END__ | ||