OmniSciDB
a5dc49c757
|
#include <TableFunctionsDataCache.h>
Public Member Functions | |
bool | isKeyCached (const std::string &key) const |
std::shared_ptr< T > | getDataForKey (const std::string &key) const |
void | putDataForKey (const std::string &key, std::shared_ptr< T > const data) |
Private Attributes | |
std::unordered_map < std::string, std::shared_ptr < T > > | data_cache_ |
std::shared_mutex | cache_mutex_ |
Static Private Attributes | |
static constexpr bool | debug_print_ {false} |
Definition at line 145 of file TableFunctionsDataCache.h.
|
inline |
Definition at line 152 of file TableFunctionsDataCache.h.
References DataCache< T >::cache_mutex_, and DataCache< T >::data_cache_.
|
inline |
Definition at line 147 of file TableFunctionsDataCache.h.
References DataCache< T >::cache_mutex_, and DataCache< T >::data_cache_.
|
inline |
Definition at line 162 of file TableFunctionsDataCache.h.
References DataCache< T >::cache_mutex_, DataCache< T >::data_cache_, and DataCache< T >::debug_print_.
|
mutableprivate |
Definition at line 179 of file TableFunctionsDataCache.h.
Referenced by DataCache< T >::getDataForKey(), DataCache< T >::isKeyCached(), and DataCache< T >::putDataForKey().
|
private |
Definition at line 178 of file TableFunctionsDataCache.h.
Referenced by DataCache< T >::getDataForKey(), DataCache< T >::isKeyCached(), and DataCache< T >::putDataForKey().
Definition at line 180 of file TableFunctionsDataCache.h.
Referenced by DataCache< T >::putDataForKey().