ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@gridgain.com>
Subject Re: link cache to object class?
Date Fri, 15 Apr 2016 04:49:02 GMT
I'm not sure I understand you properly.

However in any case you can use a code block like the one below to get an
instance of a cache related to a specific class

String cacheName = object.getClass().getSimpleName().toLowerCase();

IgniteCache cache = ignite.cache(cacheName);

The caches have to be pre-configured with this names in XML configuration or
can be started dynamically with ignite.getOrCreateCache()

--
Denis



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/link-cache-to-object-class-tp4119p4211.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message