I was thinking about what you can do, it's simple and close to your needs ...
If you are fine with current days, and not in the last 24 hours, then you can implement directories with the name date, for example, in the format yyyymmdd, and then in your interface layer iso find the file in the current day directory .. If you do not find it , then there is no cache and you create it.
At a time convenient for you, you could store at home to clean the catalogs of the current day.
This strategy will make your 24-hour framework look more like 0-24 hours .. so an average of 12 ... are skewed depending on the time of day when you think your users are most likely to use your application.
You can set the timeframe by using the algorithm to generate a directory. For example, you can force it to create a unique directory name every 2 days (on average for 24-hour caching).
If IsolatedStorageFile.GetFileNames () works with the file index, you can encode the date in the last part of the file name. Unfortunately, it still returns *. * Whatever.
source share