Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHIDP-5004 remove useRedisSets #901

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,4 @@ backend:
cache:
store: redis
connection: redis://user:[email protected]: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.