Rose
|
Virtual ase class for data sources to be cached. More...
#include <Cache.h>
Public Member Functions | |
virtual void | fetch (CacheObject &cacheObject, std::ostream &ostrm, time_t cacheTime)=0 |
Fetch a cache object from a source. More... | |
auto | cacheValidDuration () const |
Access the cache object validity period. More... | |
Protected Attributes | |
std::chrono::system_clock::duration | mCacheValidDuration {} |
Virtual ase class for data sources to be cached.
|
inline |
Access the cache object validity period.
|
pure virtual |
Fetch a cache object from a source.
cacheObject | The object to fetch |
ostrm | The output stream to write the fetched object on. |
cacheTime | The time on the cache object. |
Implemented in rose::CacheWebSource.