cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Caching and key collision?
Date Tue, 15 Jan 2002 15:21:06 GMT

I noticed caching is done by generating a key with generateKey. This 
returns a long, which is commonly generated through hashing. The 
documentation says "This key must be unique inside the space of this 
component", which hashing does not guarantee. Won't this lead the cache to 
confusing two different cacheable objects (files/server pages/etc.) which 
accidently have the same cache value? This sure is an unlikely event, but 
ist still can happen. Also, on pipelines with many program steps, the 
cache generates very long file names some operatings systems can't cope 


View raw message