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

Client Side Caching #2854

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Client Side Caching #2854

wants to merge 5 commits into from

Conversation

sjpotter
Copy link
Contributor

Description

Describe your pull request here


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

@@ -218,6 +231,7 @@ export default class RedisClusterSlots<
}

await Promise.all(promises);
this.clientSideCache?.enable();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to think about this clear/disable/enable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timing, et al

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the reason I did disabled/enabled as I did, as while nothing could change, topology (master/replicas, slot mapping) could change without any clients being added.

this concerns me and make me think that on any reconfigure we have to clear cache. I'm not sure the order matters as the only "await" seems to be the await Promises.all() so moving them around wont effect much I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant