/usr/share/perl5/CHI/t/Driver/CacheCache.pm is in libchi-perl 0.60-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | package CHI::t::Driver::CacheCache;
$CHI::t::Driver::CacheCache::VERSION = '0.60';
use strict;
use warnings;
use CHI::Test;
use File::Temp qw(tempdir);
use base qw(CHI::t::Driver);
my $root_dir;
sub supports_expires_on_backend { 1 }
sub required_modules {
return { 'Cache::Cache' => undef, 'Cache::FileCache' => undef };
}
sub new_cache_options {
my $self = shift;
$root_dir ||=
tempdir( "chi-driver-cachecache-XXXX", TMPDIR => 1, CLEANUP => 1 );
return (
$self->SUPER::new_cache_options(),
cc_class => 'Cache::FileCache',
cc_options => { cache_root => $root_dir }
);
}
sub set_standard_keys_and_values {
my ($self) = @_;
my ( $keys, $values ) = $self->SUPER::set_standard_keys_and_values();
# Cache::FileCache apparently cannot handle key = 0
$keys->{'zero'} = 'zero';
return ( $keys, $values );
}
# Skip multiple process test - Cache::FileCache will hit occasional rename failures under this test
sub test_multiple_procs { }
1;
|