36 std::unique_ptr<google::protobuf::Message>& param =
_params[key];
37 param = std::unique_ptr<google::protobuf::Message>(message.New());
38 param->CopyFrom(message);
43 auto param_it =
_params.find(key);
46 std::unique_ptr<google::protobuf::Message> param(param_it->second->New());
47 param->CopyFrom(*param_it->second);
50 return std::unique_ptr<google::protobuf::Message>();
58 auto it = nested_name.begin();
59 auto prev_end = std::prev(nested_name.end());
60 for (; it != nested_name.end(); ++it)
63 if (it != prev_end) key +=
"/";
void toCache(const std::string &key, const google::protobuf::Message &message)
static std::string nestedNameListToKey(const std::list< std::string > &nested_name)
bool hasCache(const std::string &key) const
std::unique_ptr< google::protobuf::Message > fromCache(const std::string &key) const