A ttl of -1 means that there does not currently exist an expiration
time on a key. That either means that the key doesn't exist or that it
doesn't have an expiration time. It is expected behavior.
For your keys that you watch their ttl drop to -1, try to fetch the
data once the ttl reaches -1, and notice that you don't get your data
back.
Regards,
- Josiah
On Wed, Jan 16, 2013 at 6:48 AM, Petridean Ovidiu <
ullt...@gmail.com> wrote:
> Hi,
> I'm having a strange problem with redis.
> I have a master-slave configuration for redis.
> I set a number of keys(~1000) using a java app(with jedis) and they are
> supposed to expire in 24 hours since they have been set.
> The problem is that if if TTL looks ok for all the keys a small part of them
> do not expire.
> I wathed the TTL for the key decreasing to 0 and the it just gets to -1 and
> the key never expires.
> It is very strange that only a small number of those keys do not expire(this
> happnes randomly).
> I see no errors in redis log.
>
> I'm using redis 2.4.15.
>
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/redis-db/-/qH3J5rEKtXEJ.
> To post to this group, send email to
redi...@googlegroups.com.
> To unsubscribe from this group, send email to
>
redis-db+u...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/redis-db?hl=en.