On Fri, 27 Feb 2004, OTR Comm wrote:

> What database format is swap.state in?


None. It is a data file for Squid.

> Are there any existing tools that can pinpoint a particular entry in the
> cache by name?


swap.state has this information in the object number field.

> If not, can you point me to code routines in 3.0 that address swap.state
> during a purge?


see purgeRequest().

Please note that swap.state is only used by Squid during a cache rebuild.
The index over what is in the cache is kept in memory while Squid is
running and only changes is written to the swap.state to allow a cache
rebuild should Squid crash.


Regards
Henrik