ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Using ignite for local caching within a process
Date Wed, 12 Aug 2015 19:08:59 GMT
kohlisimranjit wrote
> Hi, 
> I want to use ignite for local caching with LRU. I want my code to
> initialize ignite via code
> Ignite ignite = Ignition.start("./conf/example-cache.xml");
> 		cache = ignite.getOrCreateCache("cacheName");
> But I think this starts the ignite server on a new JVM with separate heap.
> So I wanted to know is there anyway we can make ignite use the JVM and
> heap of the process which which starts it.


Ignition.start() method never forks any external processes and starts the
node in embedded mode within current JVM.

BTW, to enable LRU you can use LruEvictionPolicy which is provided out of
the box. You can find a configuration example here:


View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Using-ignite-for-local-caching-within-a-process-tp927p930.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message