[Opensymphony-oscache] Using Object as a Key for the cache?

Rekha Ghorpade <[email protected]> Thu, 07 Jul 2005 02:24:00 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <11888713.1120721098862.JavaMail.os-j2ee@opensymphony01.contegix.com>
A dumb question:
Is it possible to use any java Object as a Key if it implements the equals and other necessary methods?

Basically, I want to cache only POJOs. And I want to use instances of my own class as keys. Whereas the api define only Java.lang.String as the key to cache.

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=4002&messageID=9930#9930