First time thinking about integrating cache options…and of course I don’t pick anything easy to do…or do I?
So, reading about this wonderful feature makes me thing this:
I have a collection object that houses a set of objects derived from some data. Typically they are not going to change often, but they will change. Generally I want to persist the collection object as a singleton. If the app get’s reinitialized, the collection is reset. But what I’d like to do is have the collection object be smart enough to do (or react to) two things.
- Every 30 minutes (or whatever timeframe I want) the collection will reset itself (thus re-fetching the data it needs and re-positioning it as a persisted object)
- If an administrator changes the data that this collection object houses, when the data is changed, the object is TOLD to reset itself.
Is this possible or am I of the right thinking that this is one of the many advantages of being able to apply cache features to an object?
Thanks,
Mike Craig