Y
Y
Yuri2012-06-18 09:49:40
NoSQL
Yuri, 2012-06-18 09:49:40

TTL for Redis keys

Can you please tell me what is the default TTL for keys in Redis and what parameter in redis.conf is responsible for it? Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
aber, 2012-06-18
@modestguy

By default, ttl is not set - it lives “forever”, for more details - the expire command

Y
Yuri, 2012-06-18
@modestguy

Thank you. Further it is clear.

Y
Yuri, 2012-06-18
@modestguy

So. I’ll immediately ask the second question ... I can’t understand (please don’t hit hard - the first acquaintance with Redis - there is little information in my head yet)
In what cases will the keys be deleted on their own - if I don’t specify TTL for them using the Expire command ?

Y
Yuri, 2012-06-18
@modestguy

Guys, thank you all. Especially aber . Figured out what the problem was. I saved the key with the name keys - apparently you can’t do this, because there is a KEYS command (I corrected it for keys_redis - everything I do seems to work).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question