Regarding Redis configuration files and caching duration.

40 views
Skip to first unread message

snehasish behera

unread,
Dec 26, 2022, 6:04:13 AM12/26/22
to Redis DB
Hi,
I just wanted to know about some few topics regarding redis. 
1) How to write a config file for Redis enterprise?
2) What is the default caching time in redis and how to change it?

Thanks,
Snehasish

Itamar Haber

unread,
Dec 26, 2022, 10:30:53 AM12/26/22
to Redis DB
Hello Snehasish,

1) This mailing list focuses on Redis OSS. Redis Enterprise is a commercial product: sup...@redis.com is the best place to seek assistance, and https://docs.redis.com/latest/rs is where the docs are at. That said, configuring the enterprise edition is done via its UI/CLI/API rather than the config file IIRC.

2) Redis doesn't have a "default caching time". Each key is created without a TTL (time to live), and thus is considered as "persistent" by default. Setting a TTL for a key (e.g. with the `TTL` command) makes the key "volatile", so it expires when the TTL is reached.

Cheers,
Itamar

Michaël Catanzariti

unread,
Dec 26, 2022, 4:57:46 PM12/26/22
to Redis DB
Hi,

You can also configure Redis as a cache.
Key eviction is not conditioned on time but on a maximum memory configured by the configuration parameter `maxmemory`.
See https://redis.io/docs/reference/eviction/ for more information.

Cheers,

Michaël 

Reply all
Reply to author
Forward
0 new messages