1
0
Fork 0
forked from blue/lmdbal

some more ideas about duplicates

This commit is contained in:
Blue 2023-08-17 11:45:11 -03:00
parent f0727aa73d
commit 06e1aca45a
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 139 additions and 24 deletions

View file

@ -41,10 +41,10 @@
*
* \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)
* \param[in] duplicates - LMDBAL::Duplicates duplicates mode (uniqueKey by default)
*/
template<class K, class V>
LMDBAL::Cache<K, V>::Cache(Base* parent, const std::string& name, bool duplicates):
LMDBAL::Cache<K, V>::Cache(Base* parent, const std::string& name, Duplicates duplicates):
Storage<K, V>(parent, name, duplicates),
mode(Mode::nothing),
cache(new std::map<K, V>()),