hapijs / hapijs/catbox-redis

Cluster-awareness

Open
#124 0 comments 0 reactions 0 assignees View on GitHub
support
Dominant language
JavaScript
Stars
70
Forks
61
Avg merge
2m
Merged PRs (30d)
1

Description

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?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the @hapi/catbox-redis provider options and the Redis adapter's cluster behavior. The issue names no files or tests; done would mean establishing whether the shown configuration supports Redis redirection or what cluster-specific configuration is required, then documenting that result.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, redis
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.