When to flush data.
Never. The cache is not writable.
Only manually (using save).
When the cache object is destroyed (object destructor).
When the thread exits (static destructor).
See Implementation
When to flush data.