Hi team,

I tried to put my data model into cache. The put itself works, but get error
when I get it from cache.

And it's same for using BinaryObject when I tried to deserialise it.

Is there an easier way to just store and retrieve some simple plain data
object?

thank you

/*Here's my code, with all default ignite setting:*/

IgniteCache<String, NewModel> cache =
scIgniteHelper.getIgnite().getOrCreateCache(RtmsCacheConst.CACHE_MAIN);
        
IgniteCache<String, BinaryObject> binCache = cache.withKeepBinary();

        
NewModel model = new NewModel("v11", "v12");
        scCacheHelper.put(RtmsCacheConst.CACHE_MAIN,"model", model);

        
BinaryObject binModel =  binCache.get("model");
        
NewModel model2 = binModel.deserialize(); *// get error here*



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to