AdonisJS API
    Preparing search index...

    Type Alias RedisConnectionsList

    RedisConnectionsList: Record<
        string,
        RedisConnectionConfig
        | RedisClusterConnectionConfig,
    >

    Record of multiple Redis connections defined in the user configuration. Keys are connection names, values are either standalone or cluster configurations.

    const connections: RedisConnectionsList = {
    main: {
    host: 'localhost',
    port: 6379
    },
    cache: {
    host: 'cache.redis.com',
    port: 6380
    },
    cluster: {
    clusters: [
    { host: '127.0.0.1', port: 7000 },
    { host: '127.0.0.1', port: 7001 }
    ]
    }
    }