New listKeys() API to support glob-style key search patterns
Added new listKeys() API's to list all keys matching search glob-style
pattern under the namespace.
Deprecated old findKeys() and findKeysAsync() API's. Deprecated API's
will be removed later releases.
Release version 1.5.0
Issue-Id: RIC-110
Change-Id: Ia411a2e6fa45305580810d88e7434e5460ac3114
Signed-off-by: Petri Ovaska <petri.ovaska@nokia.com>
diff --git a/src/asyncstorageimpl.cpp b/src/asyncstorageimpl.cpp
index a018c51..0d6d683 100644
--- a/src/asyncstorageimpl.cpp
+++ b/src/asyncstorageimpl.cpp
@@ -241,6 +241,13 @@
getOperationHandler(ns).findKeysAsync(ns, keyPrefix, findKeysAck);
}
+void AsyncStorageImpl::listKeys(const Namespace& ns,
+ const std::string& pattern,
+ const FindKeysAck& findKeysAck)
+{
+ getOperationHandler(ns).listKeys(ns, pattern, findKeysAck);
+}
+
void AsyncStorageImpl::removeAllAsync(const Namespace& ns,
const ModifyAck& modifyAck)
{