mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge 8cb1214634
into d2c3ecf2f8
This commit is contained in:
commit
9fe1f71e98
@ -137,7 +137,7 @@ export const config: Config = {
|
||||
},
|
||||
cache: {
|
||||
type: process.env.REDIS_ENABLED === 'true' ? 'redis' : 'memory',
|
||||
ttl: 60 * 1000, // Milliseconds
|
||||
ttl: parseInt(process.env.CACHE_TTL || '3600000'), // Defaulted to 1 hour
|
||||
max: 100, // Maximum number of items in cache (defaults to 100)
|
||||
host: process.env.REDIS_HOST || 'redis',
|
||||
port: parseInt(process.env.REDIS_PORT || '6379'),
|
||||
|
@ -66,3 +66,6 @@ APP_REDIS_PORT=9001
|
||||
REDIS_ENABLED=false
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
|
||||
# Cache
|
||||
CACHE_TTL=3600000
|
||||
|
Loading…
Reference in New Issue
Block a user