Correct. The hash provides a fixed key length, wastly simplifying
indexing of the cache.
If two objects should happen to hash to the same hash value then only
the last of the two will be cached. Squid also assumes there might be
hash collisions, and on cache hits it performs a full check that the
cached URL matches the requested one.
-- Henrik Nordstrom Squid Hacker, MARA Systems Colin Campbell wrote: > the URL and looks it up in swap.state. Theory is that two URLs will never > hash to the same value. I think the hash is done so that a fixed length > key is provided thus speeding up lookups in swap.state.Received on Fri Jun 01 2001 - 01:03:00 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:26 MST