Search code examples
azureazure-caching

How Does Azure Caching Store Data With References Between Objects


I am wondering about how Azure Caching stores data where there are references between objects.

For example consider a structure which contains ObjectA, and ObjectA has ObjectB and ObjectC as properties, and ObjectC also has a property called ObjectB.

If I cache ObjectA, does ObjectB get cached twice - once as a property of ObjectA and once as a property of ObjectC, or does Azure Caching also store the references?

All the best


Solution

  • Serializers nowadays are pretty smart. There should not be a duplicate or infinite serialization issues with caching of an object that has circular references between child objects.