From c7b8d060d7624983ac173d402b960d1a6f16127a Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 13 Nov 2023 10:42:52 +0200 Subject: [PATCH] docs: add note about ttl in redis cache module (#5617) --- www/apps/docs/content/development/cache/modules/redis.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/apps/docs/content/development/cache/modules/redis.md b/www/apps/docs/content/development/cache/modules/redis.md index 3928456644..f9cf8a6665 100644 --- a/www/apps/docs/content/development/cache/modules/redis.md +++ b/www/apps/docs/content/development/cache/modules/redis.md @@ -68,7 +68,9 @@ module.exports = { } ``` -This registers the Redis cache module as the main cache service to use. In the options, you pass `redisUrl` with the value being the environment variable you set. You also pass the option `ttl`. This means time-to-live, and it indicates the number of seconds an item can live in the cache before it’s removed. +This registers the Redis cache module as the main cache service to use. In the options, you pass `redisUrl` with the value being the environment variable you set. + +You also pass the option `ttl`. This means time-to-live, and it indicates the number of seconds an item can live in the cache before it’s removed. If it's set to `0`, the module will skip adding the items to the cache. Other available options include: