Skip Menu |

This queue is for tickets about the Cache CPAN distribution.

Report information
The Basics
Id: 95608
Status: resolved
Priority: 0/
Queue: Cache

People
Owner: Nobody in particular
Requestors: gabor [...] szabgab.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Unknown warnings category 'Cache' in 2.09
Date: Tue, 13 May 2014 13:42:03 +0300
To: bug-cache [...] rt.cpan.org
From: Gabor Szabo <gabor [...] szabgab.com>
I know the modules can only store strings but the warning should say so. The code that generates this warning is use strict; use warnings; use 5.010; use Cache::File; my $cache = Cache::File->new( cache_root => '/tmp/cache_demo' ); $cache->set( 'demo', {x => 23}, '10 s' ); Unknown warnings category 'Cache' at /Users/gabor/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Cache/Entry.pm line 107.
Hi Gabor, On Tue May 13 06:42:14 2014, gabor@szabgab.com wrote: Show quoted text
> I know the modules can only store strings but the warning should say > so. > The code that generates this warning is > > use strict; > use warnings; > use 5.010; > use Cache::File; > > my $cache = Cache::File->new( cache_root => '/tmp/cache_demo' ); > $cache->set( 'demo', {x => 23}, '10 s' ); > > > > Unknown warnings category 'Cache' at > /Users/gabor/perl5/perlbrew/perls/perl- > 5.18.2/lib/site_perl/5.18.2/Cache/Entry.pm > line 107.
Thanks for the report. This should be fixed (with a test) in version 2.10 which was just uploaded to CPAN. Regards, -- Shlomi Fish
Subject: Re: [rt.cpan.org #95608] Unknown warnings category 'Cache' in 2.09
Date: Tue, 13 May 2014 16:52:54 +0300
To: bug-Cache [...] rt.cpan.org
From: Gabor Szabo <gabor [...] szabgab.com>
It is better now but it still prints Reference passed to set at /Users/gabor/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Cache.pm line 293. could it print the location where set() was called? Gabor