10 #ifndef _STRUS_DATABASE_OPTIONS_HPP_INCLUDED
11 #define _STRUS_DATABASE_OPTIONS_HPP_INCLUDED
33 if (yes) m_opt |= UseCache;
else m_opt &= ~UseCache;
40 return m_opt & UseCache;
44 unsigned int opt()
const
bool useCacheEnabled() const
Test flag for caching the values read in an LRU cache.
Definition: databaseOptions.hpp:38
unsigned int opt() const
Get the options transacription as integer.
Definition: databaseOptions.hpp:44
DatabaseOptions & useCache(bool yes=true)
Enable caching of visited key/value elements or blocks.
Definition: databaseOptions.hpp:31
DatabaseOptions(unsigned int opt_)
Constructor.
Definition: databaseOptions.hpp:27
Structure for passing some options to the strus key value storage database.
Definition: databaseOptions.hpp:17
DatabaseOptions()
Default constructor.
Definition: databaseOptions.hpp:21
DatabaseOptions(const DatabaseOptions &o)
Copy constructor.
Definition: databaseOptions.hpp:24