Re: [squid-users] Cache API

From: Abhishek Chanda <abhishek.lists_at_gmail.com>
Date: Fri, 6 Jul 2012 10:41:50 -0700

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_at_waitman.net> 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
>
Received on Fri Jul 06 2012 - 17:41:59 MDT

This archive was generated by hypermail 2.2.0 : Sat Jul 07 2012 - 12:00:01 MDT