-
Notifications
You must be signed in to change notification settings - Fork 31
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
Collection Cache is not removed from Redis when the child entity record is deleted or new one added #126
Comments
I think same issue happens if I add new mailing address then How to fix this issue? |
@fredericDelaporte, could you please help me fix this issue (if possible) ? or there is no fix for this one? |
What do you mean by "add new mailing address"? Added to the bag? |
Added separately (with linked ContactID) and saved without saving Contact. |
Btw, it was saved by NHibernate ORM not by SQL |
I have
Contact
Entity andMailingAddress
Entity. Contact has a bag of MailingAddresses which is cached inside Redis but when a MailingAddress is deleted, the association bag of MailingAddress inside Redis is not updated so when we try to load the contact again we are getting an exceptionHere is the definition of entities:
If I update MailingAddress record then if I refresh Contact view then I get the updated value and I also see the key value updated. The issue happens if I delete MailingAddress then
Contact.Addresses
key inside Redis is not removing the deleted MailingAddress and then I am getting.Everything is done inside transactions.
The text was updated successfully, but these errors were encountered: