-
Notifications
You must be signed in to change notification settings - Fork 148
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
Migrate to v4 guidance is not good enough #1211
Comments
@zhuxb711 - thanks for sending in the issue. The new redis driver is based on node-redis which you can follow their documentation on You can read more on this here and post any issues that you encounter in that repo. https://github.com/redis/node-redis/blob/master/docs/clustering.md I will add in the link to this documentation in ours to help. |
I got type not assignable error from v4.0.1 const cluster = createCluster({
rootNodes: [
{
url: `redis://host:port`
}
],
useReplicas: true
});
const key = new Keyv({
store: new KeyvRedis(cluster) // cluster is not assignable to the constructor of 'KeyvRedis'
}); |
@zhuxb711 the type issue should be resolved in |
Describe the bug
I'm using latest v3 keyv/redis currently. There is no enough information about how to migrate from v3 to v4 if using cluster replica set within k8s. In v4, using createCluster and it requests 'rootNodes' but in k8s we don't need to provide the node IP address, just provide a host URL. Would you please let me know how to migrate to v4?
Here is the code about how I make it work in v3:
The text was updated successfully, but these errors were encountered: