Skip to content

Commit 586bd4e

Browse files
committed
TASK: Enable lazy removal of keys
This should give a good performance boost for typical applications. We allow redis to lazily reclaim keys that expired or were deleted by server operations (overwrites/replaces) as well as user deletes. This will free the memory a bit later in async processes but finish the operation much faster keeping responsiveness high. Should be helpful in big publish / cache flush scenarios with Neos.
1 parent 04c5cd5 commit 586bd4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

root-files/opt/flownative/lib/redis.sh

+3
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ redis_initialize() {
113113
redis_conf_set maxmemory "${REDIS_MAXMEMORY}"
114114
redis_conf_set maxmemory-policy "${REDIS_MAXMEMORY_POLICY}"
115115
redis_conf_set databases "${REDIS_DATABASES}"
116+
redis_conf_set lazyfree-lazy-expire yes
117+
redis_conf_set lazyfree-lazy-server-del yes
118+
redis_conf_set lazyfree-lazy-user-del yes
116119
redis_conf_unset save
117120
if [[ -n "${REDIS_PASSWORD}" ]]; then
118121
redis_conf_set requirepass "${REDIS_PASSWORD}"

0 commit comments

Comments
 (0)