Skip to content

Client Side Caching#2854

Closed
sjpotter wants to merge 5 commits intoredis:masterfrom
sjpotter:csc-1
Closed

Client Side Caching#2854
sjpotter wants to merge 5 commits intoredis:masterfrom
sjpotter:csc-1

Conversation

@sjpotter
Copy link
Copy Markdown
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)?

Comment thread packages/client/lib/client/parser.ts
Comment thread packages/client/lib/client/pool.ts Outdated
Comment thread packages/client/lib/client/pool.ts Outdated
Comment thread packages/client/lib/client/pool.ts
Comment thread packages/client/lib/client/pool.ts
}

await Promise.all(promises);
this.clientSideCache?.enable();
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread packages/client/lib/sentinel/index.ts
Comment thread packages/client/lib/sentinel/index.ts Outdated
@sjpotter sjpotter force-pushed the csc-1 branch 4 times, most recently from 63601a1 to ff9fca2 Compare November 5, 2024 10:24
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.

2 participants