Is there any way that I can put objects into the cache with a dependency?
For example if I put ObjectB into the cache with a dependency on ObjectA so that when ObjectA expires or I remove it ObjectB will also automatically be removed?
I know that I can create regions and tag items that way to create my dependency but I don't really want to do this as Regions exist on only one cache server in the cluster which kind of defeats the point of a distributed and scalable caching solution.
If I can't add with a straight out dependency I'm thinking I could possibly work around it by adding my objects with some kind of key naming convention to create the dependencies.
eg. Add ObjectA with key 'ObjectA'
Add ObjectB with key 'ObjectA_ObjectB'
but then when I want to expire all the objects dependant on ObjectA I would need to fetch based on a wildcard search of the key. Is this possible?