4 messages in com.googlegroups.google-gears[gears-users] Enumerating a ResourceS...
FromSent OnAttachments
magixman19 Jul 2008 09:40 
Chris Prince19 Jul 2008 12:39 
magixman21 Jul 2008 05:36 
Chris Prince24 Jul 2008 10:31 
Subject:[gears-users] Enumerating a ResourceStore
From:magixman (sam.@gmail.com)
Date:07/19/2008 09:40:26 AM
List:com.googlegroups.google-gears

I am integrating a CMS-like system with Gears. Things are going very well and I am quite impressed so far with the design and usability of the API. One small issue I am running into is that I have images in my content which I add to the ResourceStore as they come down from the server. I need a way to 'garbage collect' images that are no longer referenced in the content.

On the server I run a background task periodically which examines the content, makes a list and kills stuff not on the list. A high water mark makes this safe and easy to do and much more efficient than maintaining a complex cross reference.

I would like to do the same thing on the client but I can't seem to find a way to do this other than to add a database record each time I capture a URL so I know what has been captured. So my question is whether there is or will eventually be a way to enumerate the ResourceStore?