3 Replies Latest reply on Mar 8, 2013 11:14 AM by Mircea Markus

    does infinispan cache allow to put a value of any kind of object instead of String

    antonino di guardo Newbie

      Hi

       

      Having a look to the examples provided by infinispan 5.2.1 final (e.g. GUIDemo) I only saw that values of type String are inserted (e.g. cache.put("keyString", "valueString")). Is there any methods to put also other kind of objects?

      For example I'd like to put an object of the following type:

       

      public class KpiRecord {

        double kpi1;

      double kpi2;

      }

       

       

      ...

       

      KpiRecord kpi = new KpiRecord();

       

      kpi.kpi1 = 1;

      ...

       

      cache.put( "kpi", kpi);

       

       

      br,

      Antonio