Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster-awareness #124

Open
einar-hjortdal opened this issue Nov 1, 2022 · 0 comments
Open

Cluster-awareness #124

einar-hjortdal opened this issue Nov 1, 2022 · 0 comments
Labels
support Questions, discussions, and general support

Comments

@einar-hjortdal
Copy link

einar-hjortdal commented Nov 1, 2022

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?

@einar-hjortdal einar-hjortdal added the support Questions, discussions, and general support label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Questions, discussions, and general support
Projects
None yet
Development

No branches or pull requests

1 participant