Astro-Coords
view release on metacpan or search on metacpan
lib/Astro/Coords.pm view on Meta::CPAN
32083209321032113212321332143215321632173218321932203221322232233224322532263227
my
$primary
=
$self
->_cache_key;
return
()
unless
defined
$primary
;
my
$C
=
$self
->_cache_ref;
return
()
unless
exists
$C
->{
$primary
};
my
$local
=
$C
->{
$primary
};
return
()
unless
defined
$local
;
my
@answer
=
map
{
$local
->{
$_
} }
@keys
;
# print "Caller: ". join(":", caller() ) ."\n";
# print "Getting cache values for ". join(":",@keys) ."\n";
# print "Getting cache values for ". join(":",@answer) ."\n";
return
(
wantarray
() ?
@answer
:
$answer
[0] );
}
=item B<_calc_cache_key>
Internal (to the cache system) function for calculating the cache
key for the current epoch.
( run in 1.030 second using v1.01-cache-2.11-cpan-e9199f4ba4c )