Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Cache-Store-FastMmap CPAN distribution.

Report information
The Basics
Id: 66769
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Cache-Store-FastMmap

People
Owner: bobtfish [...] bobtfish.net
Requestors: REDICAPS [...] cpan.org
Cc:
AdminCc:

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



Subject: Add expires option for 'set'
Cache::FastMmap supports setting expire time for a single key $fstmmap->set($key, $value, $expire_time) or $fstmmap->set($key, $value, {expire_time => $time}) This module just skips all the other parameters except $key and $value, which makes setting expire_time impossible when use together Catalyst::Plugin::Cache. This can be fixed by adding the fourth parameter from C::P::Cache sub set { my ( $self, $key, $value ) = @_; $self->SUPER::set( $key => \$value, $_[3] ? $_[3] : () ); }
module is Catalyst::Plugin::Cache::Backend::FastMmap 在 2011-三月-22 02:58:41 星期二 时,REDICAPS 写到: Show quoted text
> Cache::FastMmap supports setting expire time for a single key > $fstmmap->set($key, $value, $expire_time) or > $fstmmap->set($key, $value, {expire_time => $time}) > > This module just skips all the other parameters except $key and $value, > which makes setting expire_time impossible when use together > Catalyst::Plugin::Cache. > > This can be fixed by adding the fourth parameter from C::P::Cache > > sub set { > my ( $self, $key, $value ) = @_; > $self->SUPER::set( $key => \$value, $_[3] ? $_[3] : () ); > }
Fixed in version 0.04, just released. Thanks for the bug report and suggestion.