Click here to Skip to main content
15,843,865 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used caching in application which is related to name space System.Runtime.Caching.
I have two classes Customer and Sale.

Object of Customer class is referenced in parent class ie. Sale.
collection of both entities added in cached collection differently.
Suppose I have updated Customer A from customer form.Is it possible to get updated customer in sale without any extra efforts.

Note: Both entities are managed in different cached collection

What I have tried:

I tried to use child object by reference during cache filling of sale entity.But when Customer is updated,It is not reflecting in sale entity
Posted
Comments
Gerry Schmitz 29-Oct-18 14:04pm    
What's wrong with using the collections in the Systems.Collections.Concurrent namespace?

I think your requirements go beyond (simply) "caching".
V5709 30-Oct-18 1:42am    
I want to persist collection of nested objects in memory cache for the benefit of performance.The issue is whenever I update child object ,to reflect it in parent object I need to fetch it again from child object cache. SO is it possible to get updated child object without accessing child object cache for parent object.
* Both parent and child objects are having their independent cache.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900