1 #ifndef VTESTBED_CACHE_CACHE_HH 2 #define VTESTBED_CACHE_CACHE_HH 37 std::ios::openmode _mode;
47 std::ios::openmode mode=std::ios::openmode{}
50 _filename{cache_file(key, subkey)},
53 std::ifstream in{this->_filename, this->_mode | std::ios::in};
60 print_cache(tag, this->_filename, subkey);
71 this->_mode | std::ios::out
77 hit()
const noexcept {
84 print_cache(
"invalidate", this->_filename, this->_subkey);
93 #endif // vim:filetype=cpp