Hi Amos, I need to have a list of all files cached in a network which has multiple instances of Squid running. So, I was looking for an API to query the cache and retrieve metadata about the files there. Is there a better way to do this? Thanks for the link Waitman, I will look into it. Thanks On Fri, Jul 6, 2012 at 8:40 AM, Waitman Gobble <waitman@xxxxxxxxxxx> wrote: > On 7/6/2012 12:00 AM, Amos Jeffries wrote: >> >> On 6/07/2012 12:15 p.m., Abhishek Chanda wrote: >>> >>> Hi all, >>> >>> Does Squid have an API to query the content of the cache? I am aware >>> of contentmgr.cgi, but I am looking for an API that I can call from my >>> code. >>> >>> Thanks >> >> >> Why would your code want to reach into the code of another program and do >> things? >> >> What are you trying to achieve? >> >> Amos > > > Hi, > > An alternative you may want to check out is an e-cap module. Here is a > simple example which stores the chunks in mongodb. It is possible to combine > chunks into complete documents/etc however it seems to perform much better > if you stuff the chunks and combine them later. > > https://github.com/creamy/ecap-mongo > > Waitman Gobble > San Jose, California >