Skip to content

Commit b09c768

Browse files
authored
RHIDP-5004 remove useRedisSets (redhat-developer#901)
1 parent f200138 commit b09c768

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Diff for: modules/dynamic-plugins/proc-installing-and-configuring-redis-cache.adoc

-18
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,4 @@ backend:
1616
cache:
1717
store: redis
1818
connection: redis://user:[email protected]:6379
19-
useRedisSets: true
2019
----
21-
22-
== Configuring Redis Cache in {product}
23-
=== useRedisSets
24-
The `useRedisSets` option lets you decide whether to use Redis sets for key management. By default, this option is set to `true`.
25-
26-
When `useRedisSets` is enabled (`true`):
27-
28-
* A namespace for the Redis sets is created, and all generated keys are added to that namespace, enabling group management of the keys.
29-
30-
* When a key is deleted, it's removed from the main storage and the Redis set.
31-
32-
* 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.
33-
34-
[NOTE]
35-
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`.
36-
37-
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.

0 commit comments

Comments
 (0)