X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fprivate%2Fasyncstorageimpl.hpp;h=59998330bff57bf2ba4543537f30a642e71ab300;hb=ece67088ea6c4f67b9d0db74477a9d5c614d7763;hp=d6a90dfe12b4dea0d933e504c7f66153348d3e2f;hpb=8324d029ce006509ddbc605446d05987c17e0368;p=ric-plt%2Fsdl.git diff --git a/include/private/asyncstorageimpl.hpp b/include/private/asyncstorageimpl.hpp index d6a90df..5999833 100644 --- a/include/private/asyncstorageimpl.hpp +++ b/include/private/asyncstorageimpl.hpp @@ -14,6 +14,11 @@ limitations under the License. */ +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). +*/ + #ifndef SHAREDDATALAYER_REDIS_ASYNCSTORAGEIMPL_HPP_ #define SHAREDDATALAYER_REDIS_ASYNCSTORAGEIMPL_HPP_ @@ -25,6 +30,7 @@ #include "private/logger.hpp" #include "private/namespaceconfigurationsimpl.hpp" #include "private/redis/asyncdatabasediscovery.hpp" +#include "private/redis/asyncredisstorage.hpp" namespace shareddatalayer { @@ -34,7 +40,9 @@ namespace shareddatalayer { public: using AsyncDatabaseDiscoveryCreator = std::function(std::shared_ptr engine, + const std::string& ns, const DatabaseConfiguration& databaseConfiguration, + const boost::optional& addressIndex, std::shared_ptr logger)>; AsyncStorageImpl(const AsyncStorageImpl&) = delete; @@ -89,8 +97,13 @@ namespace shareddatalayer std::shared_ptr logger; AsyncDatabaseDiscoveryCreator asyncDatabaseDiscoveryCreator; - AsyncStorage& getRedisHandler(); + std::vector> asyncStorages; + + AsyncStorage& getRedisHandler(const std::string& ns); AsyncStorage& getDummyHandler(); + + void setAsyncRedisStorageHandlers(const std::string& ns); + AsyncStorage& getAsyncRedisStorageHandler(const std::string& ns); }; }