OptionalcommandOptionalconnectionOptionaldb?: numberOptionalhost?: stringOptionalpassword?: stringOptionalport?: numberOptionaltls?: boolean | ConnectionOptionsConnect over TLS: true, or Node tls.connect options (ca, servername...).
Optionalurl?: stringredis://[user:password@]host:port/db, or rediss:// for TLS (managed
Redis: Upstash, ElastiCache with in-transit encryption). The other
fields, when given, take precedence over the URL's.
Optionalusername?: stringACL user (Redis 6+).
OptionalmaxMemory adapter only: most entries kept (default 100 000). Past it the oldest writes are dropped; expired entries are swept every minute.
OptionalsecretOptionalttl
Redis: how long a command may take before it fails, in ms (default 2000). While Redis is down, requests that use the cache (rate limiting, cache-backed sessions) fail after this instead of hanging through the client's reconnect attempts.