App-Greple-xlate
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/Greple/xlate/Cache.pm view on Meta::CPAN
elsif (ref $json eq 'ARRAY') { +{ map @{$_}[0,1], @$json } }
else { die "unexpected json data." }
};
warn "read cache from $file\n";
} else {
$obj->{saved} = {};
}
$obj;
}
sub update {
my $obj = shift;
my $file = $obj->name || return;
if (not $obj->force_update and $obj->updated == 0) {
if (%{$obj->saved} == 0) {
return;
} elsif ($obj->accumulate) {
for (keys %{$obj->saved}) {
$obj->current->{$_} //= delete $obj->saved->{$_};
}
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.708 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )