{
memcached_return_t rc= memcached_set(memc_,
key.c_str(), key.length(),
- &value[0], value.size(),
+ value.data(), value.size(),
expiration, flags);
return memcached_success(rc);
}
time_t expiration,
uint32_t flags)
{
- bool retval= true;
std::map<const std::string, std::vector<char> >::const_iterator it= key_value_map.begin();
while (it != key_value_map.end())
{
- retval= set(it->first, it->second, expiration, flags);
- if (retval == false)
+ if (!set(it->first, it->second, expiration, flags))
{
// We should tell the user what the key that failed was
return false;
*/
for (uint32_t x= 0; x < server_count; x++)
{
- memcached_server_instance_st instance= memcached_server_instance_by_position(memc_, x);
+ const memcached_instance_st * instance= memcached_server_instance_by_position(memc_, x);
std::ostringstream strstm;
std::string server_name(memcached_server_name(instance));
server_name.append(":");