MCPcopy Index your code
hub / github.com/simstudioai/sim / getRedisConnectionDefaults

Function getRedisConnectionDefaults

apps/sim/lib/core/config/redis.ts:45–55  ·  view source on GitHub ↗
(
  url: string | undefined
)

Source from the content-addressed store, hash-verified

43 * spread this; callers add their own retry / timeout policy on top.
44 */
45export function getRedisConnectionDefaults(
46 url: string | undefined
47): Pick<RedisOptions, 'keepAlive' | 'connectTimeout' | 'enableOfflineQueue' | 'tls'> {
48 const tls = resolveRedisTlsOptions(url)
49 return {
50 keepAlive: 1000,
51 connectTimeout: 10000,
52 enableOfflineQueue: true,
53 ...(tls ? { tls } : {}),
54 }
55}
56
57interface RedisState {
58 client: Redis | null

Callers 2

createPubSubChannelFunction · 0.90
getRedisClientFunction · 0.85

Calls 1

resolveRedisTlsOptionsFunction · 0.85

Tested by

no test coverage detected