1 Reply Latest reply on Nov 17, 2012 3:06 AM by Tristan Tarrant

    Object as cache key -gotchas?

    infiniuser Newbie

      Hi,

      For an use case, we need to have an object as cache key which in turn holds a list of items. ISPN allows to do this readily, which was a welcome feature for me coming from Memcached which supported only String keys. Apart from overriding equals()/hashcode() , is there anything else to be considered when we use an "Object" as cache key? . From other posts, i am guessing there is no limit to the size of the key/ value (again a constraint in Memcached) . I'm using RemoteCache with Hotrod client.

       

      Thanks!