Apache Ignite Documentation

GridGain Developer Hub - Apache Ignitetm

Welcome to the Apache Ignite developer hub run by GridGain. Here you'll find comprehensive guides and documentation to help you start working with Apache Ignite as quickly as possible, as well as support if you get stuck.


GridGain also provides Community Edition which is a distribution of Apache Ignite made available by GridGain. It is the fastest and easiest way to get started with Apache Ignite. The Community Edition is generally more stable than the Apache Ignite release available from the Apache Ignite website and may contain extra bug fixes and features that have not made it yet into the release on the Apache website.


Let's jump right in!


Documentation     Ask a Question     Download


Javadoc     Scaladoc     Examples

Cache Configuration

Ignite provides various cache configurations that allow you to control the behavior of the cache to suite your application needs. Cache properties are defined in the CacheConfiguration class that is passed to the cluster via the IgniteConfiguration.setCacheConfiguration() method. It defines all configuration parameters required to start a cache in the cluster. You can have multiple caches configured with different names within one cluster. An Ignite cache can be configured for the following features:

Partitioning and Replication - Ignite provides three different modes of cache operation: PARTITIONED, REPLICATED, and LOCAL. A cache mode is configured for each cache. Cache modes are defined in CacheMode enumeration.

Partition Loss Policies - Allows you to configure how the cache should behave when some of the data partitions get lost due to the failure of primary and backup nodes that held a copy of the partitions.

Primary & Backup Copies - In PARTITIONED mode, nodes to which the keys are assigned are called primary nodes for those keys. You can also optionally configure any number of backup nodes for cached data.

Cache Groups - You can configure caches within a single cache group. This allows sharing various internal structures which in turn boosts topology events processing and decreases overall memory usage.

Cache Template - Cache templates are useful when you want to create a cache with the same configuration as an existing cache in the cluster. This allows you to create a cache without defining a long list of configuration parameters.

Updated 7 months ago

Cache Configuration

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.