Re: [squid-users] Generating Squid hash

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 21 Aug 2008 00:49:45 +0200

On ons, 2008-08-20 at 16:24 +0000, John =) wrote:
> Hi, this probably seems like a trivial question, but I have not been able to find any help in the mail archive.
>
> How is the hash value used to index the object in the cache generated please? My intentions are to be able to manually introduce new items to the cache and update the logs accordingly.

The hash is only used internally.

method + URL -> md5 hash -> internal store object -> on-disk file number

The actual hash function can be seen in storeKeyPublic() in src/store_key_md5.cc

Regards
Henrik

Received on Wed Aug 20 2008 - 22:49:50 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 21 2008 - 12:00:03 MDT