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

MemoryCache is not invalidated when using deleteByPrimaryKey #8

Closed
yevyevyev opened this issue Sep 9, 2019 · 2 comments
Closed

MemoryCache is not invalidated when using deleteByPrimaryKey #8

yevyevyev opened this issue Sep 9, 2019 · 2 comments

Comments

@yevyevyev
Copy link

Hello Hurshi. The memory is not invalidated because it should support "where" clause. Let me elaborate
mapCache.invalidate("${key}${subKey ?? ""}");
this line deletes only one record with the specified key and subkey, but what we actually want to achieve is to delete all the occurrences where key is present. So, it clears the disk cache, but the memory still stays the same.

@hurshi
Copy link
Owner

hurshi commented Sep 17, 2019

I'm terribly sorry. It was my fault. I have fixed the problem and updated the new version。
And thanks for your issue, have a nice day!

@yevyevyev
Copy link
Author

Thank you 🙏

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

No branches or pull requests

2 participants