I'm not sure what the problem is exactly, but I don't recommend using large objects as keys. If you want to take advantage of the fastest way to spool data on disk, then you would use the indexeddiskcache auxiliary. This puts the least recently used data on disk and keeps the keys in memory. Also, complex key comparisons could slow the entire system down.
Can you use a String as a key? What exactly are you trying to do? Aaron > -----Original Message----- > From: Jack Gao [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 07, 2004 6:20 PM > To: [EMAIL PROTECTED] > Subject: Question about key object. > > Hi, there > > I'm pretty new with JCS, and I have some question about key object in JCS > now. > > I'm try to use my own object as key for JCS cache system. And this object > declared as PrimaryKey interface, will generate dynamically. It's may > include a ID, may include more complex properties. > > But when I use this dynamic generated key object to retrieve object from > cache, I can not get it, it just return me null. But I'm sure the object > is > in cache. > > So I think maybe I need to write my own equals() and hashCode() method to > make it force check if the keys are same. But even I overwrite equals() > and > hashCode(), it still can not found and these two method never been called. > > Do I had to use exactlly same object as key to store and retrieve object > to > and from JCS cache system? > > Thanks > > Wei > > _________________________________________________________________ > Check your PC for viruses with the FREE McAfee online computer scan. > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > --------------------------------------------------------------------- > 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]
