-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ask-assistant
* master: feat(editor): Auto-add LLM chain for new LLM nodes on empty canvas (#10245) fix(core): Fix user telemetry bugs (#10293) refactor(core): Remove stray log from telemetry event relay (no-changelog) (#10295) refactor(core): Decouple user events from internal hooks (no-changelog) (#10292) feat(core): Support community packages in scaling-mode (#10228) test(core): Move unit tests closer to testable components (no-changelog) (#10287) fix(core): Webhook and form baseUrl missing (#10290) refactor(core): Port cache config (no-changelog) (#10286)
- Loading branch information
Showing
151 changed files
with
893 additions
and
612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Config, Env, Nested } from '../decorators'; | ||
|
||
@Config | ||
class MemoryConfig { | ||
/** Max size of memory cache in bytes */ | ||
@Env('N8N_CACHE_MEMORY_MAX_SIZE') | ||
maxSize = 3 * 1024 * 1024; // 3 MiB | ||
|
||
/** Time to live (in milliseconds) for data cached in memory. */ | ||
@Env('N8N_CACHE_MEMORY_TTL') | ||
ttl = 3600 * 1000; // 1 hour | ||
} | ||
|
||
@Config | ||
class RedisConfig { | ||
/** Prefix for cache keys in Redis. */ | ||
@Env('N8N_CACHE_REDIS_KEY_PREFIX') | ||
prefix = 'redis'; | ||
|
||
/** Time to live (in milliseconds) for data cached in Redis. 0 for no TTL. */ | ||
@Env('N8N_CACHE_REDIS_TTL') | ||
ttl = 3600 * 1000; // 1 hour | ||
} | ||
|
||
@Config | ||
export class CacheConfig { | ||
/** Backend to use for caching. */ | ||
@Env('N8N_CACHE_BACKEND') | ||
backend: 'memory' | 'redis' | 'auto' = 'auto'; | ||
|
||
@Nested | ||
memory: MemoryConfig; | ||
|
||
@Nested | ||
redis: RedisConfig; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.