You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Sam Wang <wa...@gmail.com> on 2007/02/14 07:52:38 UTC

CacheElement key and val

Hi,

What is the general practice to create key and val in order to create the
cache element? I have only one type of object that I want to put in the
cache. Should I use it as both key and val?

Also, if two cache element have the same key (key1.equals(key2)), does it
require that they should have the same val (val1.equals(val2))?

Thanks.

-Sam