Skip to content

Commit

Permalink
Add REDIS_APPENDFSYNC
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Feb 24, 2025
1 parent e20e4c5 commit 9d5d4a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ All images built for `linux/amd64` and `linux/arm64`
|-----------------------------------|-------------------------|-------------|
| `REDIS_ACTIVE_REHASHING` | `yes` | |
| `REDIS_APPENDONLY` | `no` | |
| `REDIS_APPENDFSYNC` | `everysec` | |
| `REDIS_DATABASES` | `16` | |
| `REDIS_DBFILENAME` | `dump.rdb` | |
| `REDIS_LATENCY_MONITOR_THRESHOLD` | `0` | |
Expand Down
3 changes: 2 additions & 1 deletion templates/redis.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ databases {{ getenv "REDIS_DATABASES" "16" }}
{{- if getenv "REDIS_PASSWORD" }}
requirepass {{ getenv "REDIS_PASSWORD" }}
{{- end }}
appendonly {{ getenv "REDIS_APPENDONLY" "no" }}
{{- if getenv "REDIS_SAVE_TO_DISK" }}
appendonly {{ getenv "REDIS_APPENDONLY" "no" }}
appendfsync {{ getenv "REDIS_APPENDFSYNC" "everysec" }}
dir /data
dbfilename {{ getenv "REDIS_DBFILENAME" "dump.rdb" }}
{{- $saves := split (getenv "REDIS_SAVES" "900:1/300:10/60:10000") "/" }}
Expand Down

0 comments on commit 9d5d4a4

Please # to comment.