From abd8ed6304178effe546af2ae1acd335b00d739d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20Flore-Th=C3=A9bault?= Date: Thu, 30 Jan 2025 17:15:45 +0100 Subject: [PATCH] RHIDP-5004 remove useRedisSets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabrice Flore-Thébault --- ...installing-and-configuring-redis-cache.adoc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/modules/dynamic-plugins/proc-installing-and-configuring-redis-cache.adoc b/modules/dynamic-plugins/proc-installing-and-configuring-redis-cache.adoc index 3fd1126de9..57f6f79442 100644 --- a/modules/dynamic-plugins/proc-installing-and-configuring-redis-cache.adoc +++ b/modules/dynamic-plugins/proc-installing-and-configuring-redis-cache.adoc @@ -16,22 +16,4 @@ backend: cache: store: redis connection: redis://user:pass@cache.example.com:6379 - useRedisSets: true ---- - -== Configuring Redis Cache in {product} -=== useRedisSets -The `useRedisSets` option lets you decide whether to use Redis sets for key management. By default, this option is set to `true`. - -When `useRedisSets` is enabled (`true`): - -* A namespace for the Redis sets is created, and all generated keys are added to that namespace, enabling group management of the keys. - -* When a key is deleted, it's removed from the main storage and the Redis set. - -* When using the clear function to delete all keys, every key in the Redis set is checked for deletion, and the set itself is also removed. - -[NOTE] -In high-performance scenarios, enabling `useRedisSets` can result in memory leaks. If you are running a high-performance application or service, you must set `useRedisSets` to `false`. - -When you set `useRedisSets` to `false`, the keys are handled individually and Redis sets are not utilized. This configuration might lead to performance issues in production when using the `clear` function, as it requires iterating over all keys for deletion.