> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/gridgain/gridgain-8/gridgain8-development/caches-and-memory/configuring-caches.md).

# Configuring Caches

Configuring GridGain caches, including atomicity modes, cache groups, backups, data compression, expiry policies, data distribution, and on-heap caching.

{% columns %}
{% column %}
{% content-ref url="/pages/N7RShsGPeufRQOOE1H5M" %}
[Cache Configuration](/docs/gridgain/gridgain-8/gridgain8-development/caches-and-memory/configuring-caches/configuration-overview.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
How to set GridGain cache configuration parameters, with a configuration example, the full parameter reference, and cache templates.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/TxFaCo3yqv4QMc3bUqV2" %}
[Configuring Partition Backups](/docs/gridgain/gridgain-8/gridgain8-development/caches-and-memory/configuring-caches/configuring-backups.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Configuring the number of partition backup copies for a GridGain cache and choosing between synchronous and asynchronous backup write modes.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/pczbNxWYzJW2UWAGhBVP" %}
[Atomicity Modes](/docs/gridgain/gridgain-8/gridgain8-development/caches-and-memory/configuring-caches/atomicity-modes.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
GridGain cache atomicity modes — ATOMIC, TRANSACTIONAL, and TRANSACTIONAL\_SNAPSHOT — and how to enable transactional support for a cache.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/u9QUL5XKhGox9ROvi8Gr" %}
[Expiry Policies](/docs/gridgain/gridgain-8/gridgain8-development/caches-and-memory/configuring-caches/expiry-policies.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Configuring expiry policies for GridGain caches, including eager TTL and resetting the expiration timeout with the touch operation.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/Y5cJPfn5GppeID98VfnU" %}
[On-Heap Caching](/docs/gridgain/gridgain-8/gridgain8-development/caches-and-memory/configuring-caches/on-heap-caching.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Enabling on-heap caching in GridGain and configuring on-heap eviction policies — LRU, FIFO, and Sorted — to manage the on-heap cache size.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/OsrlPKiO21rt9qynK9EO" %}
[Managing Data Distribution](/docs/gridgain/gridgain-8/gridgain8-development/caches-and-memory/configuring-caches/managing-data-distribution.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Controlling how GridGain distributes cache partitions across nodes using node filters, attribute-based filters, and backup filters.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/3WNcAnsNmw5aFAUB1mSx" %}
[Cache Groups](/docs/gridgain/gridgain-8/gridgain8-development/caches-and-memory/configuring-caches/cache-groups.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Using GridGain cache groups to share internal structures between caches, reducing memory usage and speeding up topology events in large deployments.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/Qu5zScKtr0AagvLxgFdE" %}
[Data Compression](/docs/gridgain/gridgain-8/gridgain8-development/caches-and-memory/configuring-caches/data-compression.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Dictionary-based cache data compression in GridGain using Zstandard or gzip, including configuration, ZSTD dictionary tuning, and limitations.
{% endcolumn %}
{% endcolumns %}
