|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
File-backed ring buffer cache for persistent storage. More...
#include <sys/time.h>#include <stdio.h>#include <cassert>#include <string.h>#include <stdexcept>#include <memory>#include <fstream>#include <iostream>#include <string>#include <sstream>#include <type_traits>#include <ah-errors.H>#include <tpl_array.H>Go to the source code of this file.
Classes | |
| class | RingFileCache< T > |
| Persistent ring buffer cache with file-backed storage. More... | |
| struct | RingFileCache< T >::Pars |
| class | RingFileCache< T >::Pointer |
| Defines a pointer to a specific location in the cache. More... | |
| class | RingFileCache< T >::Iterator |
Variables | |
| constexpr size_t | Ring_Max_Name_Size = 4096 |
| Maximum length for cache filename in parameter file. | |
File-backed ring buffer cache for persistent storage.
Provides a circular buffer cache that persists data to disk, enabling recovery after the program restarts. Ideal for caches that must survive crashes or for applications with memory constraints.
T must be trivially copyable (no pointers/references)T must be default constructibleDefinition in file ringfilecache.H.
|
inlineconstexpr |
Maximum length for cache filename in parameter file.
Definition at line 96 of file ringfilecache.H.
Referenced by RingFileCache< T >::create(), RingFileCache< T >::read_pars(), and RingFileCache< T >::test().