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] : () );
}