Cache Key

2003-07-01 Thread David LAGARDERE
Hello.

I'm doing an extensive use of cache and I'd like
to be sure that every key is unique. Can the Hash
algorithm provided with Cocoon (buzhash) generate two
identical keys ? If so, what will happen ?

Thanks in advance

David LAGARDERE

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cache Key Uniqueness

2003-06-12 Thread David LAGARDERE
Hello. 
I have read that BuzHash algorithm is more efficient
for keys whose length is lower than 64 bytes. Do I
have a strong probability of collision if my key is
greater than 64 bytes ? What about using String as
cache key ?

Thanks in advance.

David LAGARDERE

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cache Key Uniqueness

2003-06-12 Thread Geoff Howard
The cache used to use String but switched after some discussion -
a primary reason was speed on cache lookups IIRC.  Do you
need more than 64 bytes? The key only has to be unique within
the scope of your component, not all components/cache items.

Geoff Howard

 -Original Message-
 From: David LAGARDERE [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 12, 2003 6:05 AM
 To: [EMAIL PROTECTED]
 Subject: Cache Key Uniqueness


 Hello.
 I have read that BuzHash algorithm is more efficient
 for keys whose length is lower than 64 bytes. Do I
 have a strong probability of collision if my key is
 greater than 64 bytes ? What about using String as
 cache key ?

 Thanks in advance.

 David LAGARDERE

 ___
 Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
 Yahoo! Mail : http://fr.mail.yahoo.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]