Oct 13, 2011 at 12:56 AM
Edited Oct 15, 2011 at 6:22 PM
What I am trying to do here is, I have a ListBox which displays 10 items. When the user scrolls down to the end he can click a 'More' button which will then load another 10 items.
Because I only want to cache the first 15 items, what I am doing now is I've created another model just with a different name to store the additional items.
On the UI I use a collection that combines both the initial 15 items and all the additional items. I am thinking maybe I can create a boolean variable called something like IsCache and pass it to the Load constructor
to tell AgFx to cache it or not. What do you think? Is there a better way?
I just saw you used an ICachedItem interface to dynamically set the expiration time of the model. I basically set it in the Deserialize method as my understanding is the actual caching happens after the Deserialize is called.