Hi Salvatore,
Cache::Cache isn't really maintained anymore. Have you looked at its successor, CHI? Of course that may have too many dependencies for you, too. :)
Best
Jon
On Apr 23, 2011, at 12:16 PM, Salvatore Bonaccorso via RT wrote:
Show quoted text> Sat Apr 23 15:16:17 2011: Request 67717 was acted upon.
> Transaction: Ticket created by carnil@debian.org
> Queue: Cache-Cache
> Subject: [PATCH] Use Digest::SHA instead of Digest::SHA1
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: carnil@debian.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=67717 >
>
>
> Hi
>
> Attached patch changes the module to use Digest::SHA instead of
> Digest::SHA1. igest::SHA is part of the standard perl distribution since
> perl v5.9.3 so this reduces the number of external dependencies by one.
>
> Please consider applying it for the next release.
>
> Regards,
> Salvatore
>
> Index: lib/Cache/FileBackend.pm
> ===================================================================
> --- lib/Cache/FileBackend.pm (revision 73321)
> +++ lib/Cache/FileBackend.pm (working copy)
> @@ -12,7 +12,7 @@
>
> use strict;
> use Cache::CacheUtils qw( Assert_Defined Build_Path Freeze_Data Thaw_Data );
> -use Digest::SHA1 qw( sha1_hex );
> +use Digest::SHA qw( sha1_hex );
> use Error;
> use File::Path qw( mkpath );
> use File::Temp qw( tempfile );
> Index: META.yml
> ===================================================================
> --- META.yml (revision 73321)
> +++ META.yml (working copy)
> @@ -5,7 +5,6 @@
> version_from: lib/Cache/Cache.pm
> installdirs: site
> requires:
> - Digest::SHA1: 2.02
> Error: 0.15
> File::Spec: 0.82
> Storable: 1.014
> Index: Makefile.PL
> ===================================================================
> --- Makefile.PL (revision 73321)
> +++ Makefile.PL (working copy)
> @@ -10,7 +10,6 @@
> my $COMPRESS = 'gzip';
> my $SUFFIX = '.gz';
> my $DEFAULT_PREREQ_PM = {
> - Digest::SHA1 => '2.02',
> File::Spec => '0.82',
> Storable => '1.014',
> IPC::ShareLite => '0.09',
> <signature.asc>