[id='memory']
:context: config
= Configuring the Data Container
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.

include::{topics}/proc_configuring_cache_encoding.adoc[leveloffset=+1]
include::{topics}/proc_configuring_protobuf_encoding.adoc[leveloffset=+2]
include::{topics}/proc_configuring_memory_offheap.adoc[leveloffset=+1]

//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]
include::{topics}/con_eviction_custom_classes.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]

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