fix(core): Restore Redis cache key (#10520)

This commit is contained in:
Iván Ovejero 2024-08-23 08:19:59 +02:00 committed by GitHub
parent 84e54beac7
commit 873056a92e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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')

View file

@ -181,7 +181,7 @@ describe('GlobalConfig', () => {
ttl: 3600000, ttl: 3600000,
}, },
redis: { redis: {
prefix: 'redis', prefix: 'cache',
ttl: 3600000, ttl: 3600000,
}, },
}, },