forked from blue/lmdbal
started to work on duplicates support
This commit is contained in:
parent
7b26d57ab6
commit
f0727aa73d
9 changed files with 132 additions and 108 deletions
|
@ -39,12 +39,13 @@
|
|||
/**
|
||||
* \brief Creates a cache
|
||||
*
|
||||
* \param[in] _name - name of the new cache
|
||||
* \param[in] parent - parent database pointed (borrowed)
|
||||
* \param[in] parent - LMDBAL::Base pointer for the owning database (borrowed)
|
||||
* \param[in] name - the name of the storage
|
||||
* \param[in] duplicates - true if storage supports duplicates, false otherwise (false by default)
|
||||
*/
|
||||
template<class K, class V>
|
||||
LMDBAL::Cache<K, V>::Cache(const std::string& _name, Base* parent):
|
||||
Storage<K, V>(_name, parent),
|
||||
LMDBAL::Cache<K, V>::Cache(Base* parent, const std::string& name, bool duplicates):
|
||||
Storage<K, V>(parent, name, duplicates),
|
||||
mode(Mode::nothing),
|
||||
cache(new std::map<K, V>()),
|
||||
abscent(new std::set<K>()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue