Skip Menu |

This queue is for tickets about the CHI-Driver-Redis CPAN distribution.

Report information
The Basics
Id: 108389
Status: rejected
Priority: 0/
Queue: CHI-Driver-Redis

People
Owner: Nobody in particular
Requestors: c.kras [...] pcc-online.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.09
Fixed in: 0.09



Subject: expire_in doesn't work
Hi, I can't seem to get expiry to work. use CHI; my $foo = CHI->new( driver => 'Redis', namespace => 'foo', server => '127.0.0.1:6379', debug => 0 ); $foo->set('foo', 'bar', 60); After I run this code and I go to redis-cli and call 'ttl foo||foo' I get -1. Running this code on Ubuntu 14.04 with Redis 2.8.4 and Perl 5.18.2.
Problem solved, had to set expires_on_backend => 1 when constructing the CHI object. This ticket may be closed. On Mon 02 Nov 2015 20:33:35, CKRAS wrote: Show quoted text
> Hi, > > I can't seem to get expiry to work. > > use CHI; > my $foo = CHI->new( > driver => 'Redis', > namespace => 'foo', > server => '127.0.0.1:6379', > debug => 0 > ); > > $foo->set('foo', 'bar', 60); > > After I run this code and I go to redis-cli and call 'ttl foo||foo' I > get -1. > > Running this code on Ubuntu 14.04 with Redis 2.8.4 and Perl 5.18.2.
Closing as per request.