Skip to content

Commit 9d0876c

Browse files
authored
Merge pull request #7 from flownative/task/allow-lazy
Enable lazy removal of keys
2 parents e40d5d7 + 3df6122 commit 9d0876c

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
@@ -114,6 +114,9 @@ redis_initialize() {
114114
redis_conf_set maxmemory "${REDIS_MAXMEMORY}"
115115
redis_conf_set maxmemory-policy "${REDIS_MAXMEMORY_POLICY}"
116116
redis_conf_set databases "${REDIS_DATABASES}"
117+
redis_conf_set lazyfree-lazy-expire yes
118+
redis_conf_set lazyfree-lazy-server-del yes
119+
redis_conf_set lazyfree-lazy-user-del yes
117120
redis_conf_set hz "${REDIS_HZ}"
118121
redis_conf_unset save
119122
if [[ -n "${REDIS_PASSWORD}" ]]; then

0 commit comments

Comments
 (0)