mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix(core): Restore Redis cache key (#10520)
This commit is contained in:
parent
84e54beac7
commit
873056a92e
|
@ -15,7 +15,7 @@ class MemoryConfig {
|
||||||
class RedisConfig {
|
class RedisConfig {
|
||||||
/** Prefix for cache keys in Redis. */
|
/** Prefix for cache keys in Redis. */
|
||||||
@Env('N8N_CACHE_REDIS_KEY_PREFIX')
|
@Env('N8N_CACHE_REDIS_KEY_PREFIX')
|
||||||
prefix: string = 'redis';
|
prefix: string = 'cache';
|
||||||
|
|
||||||
/** Time to live (in milliseconds) for data cached in Redis. 0 for no TTL. */
|
/** Time to live (in milliseconds) for data cached in Redis. 0 for no TTL. */
|
||||||
@Env('N8N_CACHE_REDIS_TTL')
|
@Env('N8N_CACHE_REDIS_TTL')
|
||||||
|
|
|
@ -181,7 +181,7 @@ describe('GlobalConfig', () => {
|
||||||
ttl: 3600000,
|
ttl: 3600000,
|
||||||
},
|
},
|
||||||
redis: {
|
redis: {
|
||||||
prefix: 'redis',
|
prefix: 'cache',
|
||||||
ttl: 3600000,
|
ttl: 3600000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue