Skip to content

Cluster-awareness #124

@einar-hjortdal

Description

@einar-hjortdal

I am running hapi 20. Following the documentation, the following configuration works fine on a single-instance redis server.

const Hapi = require('hapi')
const CatboxRedis = require('@hapi/catbox-redis');

const server = new Hapi.Server({
    cache : [
        {
            name: 'my_cache',
            provider: {
                constructor: CatboxRedis,
                options: {
                    partition : 'test',
                    host: 127.0.0.1,
                    port: 6379,
                    db: 0,
                }
            }
        }
    ]
});

Is this configuration also cluster-aware (does it get redirected)? Or do I need to change the configuration to interface with a cluster?

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportQuestions, discussions, and general support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions