Skip to content

Commit 0efda27

Browse files
authored
Add maxmemory policy volatile-ttl (#6744)
1 parent 8e3873f commit 0efda27

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deployment/utils/redis.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ export class Redis {
108108
// Note: this is needed, otherwise local config is not loaded at all
109109
command: ['/opt/bitnami/scripts/redis/entrypoint.sh'],
110110
// This is where we can pass actual flags to the bitnami/redis runtime
111-
args: ['/opt/bitnami/scripts/redis/run.sh', `--maxmemory ${memoryInMegabytes}mb`],
111+
args: [
112+
'/opt/bitnami/scripts/redis/run.sh',
113+
`--maxmemory ${memoryInMegabytes}mb`,
114+
'--maxmemory-policy volatile-ttl',
115+
],
112116
readinessProbe: {
113117
initialDelaySeconds: 5,
114118
periodSeconds: 8,

0 commit comments

Comments
 (0)