[id='memory']
:context: config
= Managing Memory
Configure the data container where {brandname} stores entries. Specify the
encoding for cache entries, store data in off-heap memory, and use eviction or
expiration policies to keep only active entries in memory.

//Overview
include::{topics}/con_evict_vs_expire.adoc[leveloffset=+1]

//Eviction
include::{topics}/con_eviction.adoc[leveloffset=+2]
include::{topics}/proc_configuring_memory_size.adoc[leveloffset=+3]
include::{topics}/proc_configuring_memory_size_bytes.adoc[leveloffset=+3]
include::{topics}/ref_eviction_examples.adoc[leveloffset=+3]

//Expiration
include::{topics}/con_expiration.adoc[leveloffset=+2]
include::{topics}/con_expiration_overview.adoc[leveloffset=+3]
include::{topics}/con_expiration_reaper.adoc[leveloffset=+3]
include::{topics}/con_expiration_maxidle.adoc[leveloffset=+3]
include::{topics}/ref_expiration_examples.adoc[leveloffset=+3]

//Off Heap
include::{topics}/con_off_heap_memory.adoc[leveloffset=+1]
include::{topics}/proc_configuring_memory_offheap.adoc[leveloffset=+2]

// Restore the parent context.
ifdef::parent-context[:context: {parent-context}]
ifndef::parent-context[:!context:]
