/usr/share/perl5/CHI/Driver/Role/Universal.pm is in libchi-perl 0.58-1.
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 | package CHI::Driver::Role::Universal;
{
$CHI::Driver::Role::Universal::VERSION = '0.58';
}
use CHI::Constants qw(CHI_Meta_Namespace);
use Moo::Role;
use strict;
use warnings;
around 'get_namespaces' => sub {
my $orig = shift;
my $self = shift;
# Call driver get_namespaces, then filter out meta-namespace
return grep { $_ ne CHI_Meta_Namespace } $self->$orig(@_);
};
foreach my $method (qw(remove append)) {
around $method => sub {
my ( $orig, $self, $key, @rest ) = @_;
# Call transform_key before passing to method
return $self->$orig( $self->transform_key($key), @rest );
};
}
1;
__END__
|