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

Added Test Case for Synchronizing Multiple Cache with Namespace #36

Closed
wants to merge 1 commit into from

Conversation

joravkumar
Copy link
Contributor

This pull request introduces a new test case to handle synchronization of multiple caches with namespaces, which is currently not addressed. The test verifies if changes made in one cache (within a specific namespace) are propagated correctly across other caches created with the same configuration.

Issue:
The test case fails because the namespace is not being properly cleared across all caches. When a key is deleted from the namespace in one cache, it should be deleted across all caches, but currently, the data remains in some of the caches.

Impact:
This issue can lead to inconsistent data across multiple caches when working with namespaced data. This pull request aims to highlight the need for synchronization of cache data across instances within the same namespace.

@wodCZ
Copy link

wodCZ commented Sep 30, 2024

Nice! That's (I believe) exactly the issue I'm facing, and what #32 is about.

I've tried fixing the root cause myself, but failed due to lack of knowledge (or skill).

@joravkumar
Copy link
Contributor Author

I tested with other methods, including delete and deleteMany, but the namespace is also not respected in those cases.

@Julien-R44
Copy link
Owner

Thanks a lot for creating a reproduction. Super helpful :)

Issue has been fixed by PR #37 thanks to @gkachru !

@Julien-R44 Julien-R44 closed this Oct 1, 2024
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.

3 participants