Skip to content

Commit 41c3f1f

Browse files
committed
fix: default REDIS_MAXMEMORY = 0
1 parent 50d54db commit 41c3f1f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/env.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ export const env = createEnv({
6161
ENABLE_HTTPS: boolSchema("false"),
6262
HTTPS_PASSPHRASE: z.string().default("thirdweb-engine"),
6363
TRUST_PROXY: z.boolean().default(false),
64-
// REDIS_MAXMEMORY should be set below the amount of memory Redis has available
65-
// to avoid running out of memory. If this limit is reached, Engine cannot
66-
// write new keys because keys are not evicted.
67-
REDIS_MAXMEMORY: z.string().default("900mb"),
64+
REDIS_MAXMEMORY: z.string().default("0"),
6865
// TRANSACTION_HISTORY_COUNT defines the max transaction details to keep.
6966
// In testing, storing about 300k consumes 900mb memory.
7067
TRANSACTION_HISTORY_COUNT: z.coerce.number().default(300_000),

0 commit comments

Comments
 (0)