> 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-9/gridgain9-development/caches-and-memory.md).

# Caches and Memory

Store and expire data in GridGain 9 — caches, near caches, and expiry policies.

{% columns %}
{% column %}
{% content-ref url="/pages/VduK8HCwruS3NWJBRBeD" %}
[Caches](/docs/gridgain/gridgain-9/gridgain9-development/caches-and-memory/caches.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Use GridGain 9 caches as temporary storage, create them from SQL, Java classes, or a builder, and connect a cache to an external JDBC database.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/gNaJ2DE5sZt5uRcvncwQ" %}
[Near Caches](/docs/gridgain/gridgain-9/gridgain9-development/caches-and-memory/near-caches.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Configure a near cache in GridGain 9 to store frequently accessed data locally, eliminating network latency for a specific data subset.
{% endcolumn %}
{% endcolumns %}

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

{% column %}
Configure data expiry in GridGain 9 with a dedicated TIMESTAMP column and the EXPIRE AT keyword, and enable or disable expiration on existing tables.
{% endcolumn %}
{% endcolumns %}
