Skip to content

Commit

Permalink
Merge pull request #7 from flownative/task/allow-lazy
Browse files Browse the repository at this point in the history
Enable lazy removal of keys
  • Loading branch information
kdambekalns authored Oct 24, 2023
2 parents e40d5d7 + 3df6122 commit 9d0876c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions root-files/opt/flownative/lib/redis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ redis_initialize() {
redis_conf_set maxmemory "${REDIS_MAXMEMORY}"
redis_conf_set maxmemory-policy "${REDIS_MAXMEMORY_POLICY}"
redis_conf_set databases "${REDIS_DATABASES}"
redis_conf_set lazyfree-lazy-expire yes
redis_conf_set lazyfree-lazy-server-del yes
redis_conf_set lazyfree-lazy-user-del yes
redis_conf_set hz "${REDIS_HZ}"
redis_conf_unset save
if [[ -n "${REDIS_PASSWORD}" ]]; then
Expand Down

0 comments on commit 9d0876c

Please sign in to comment.