memcached::Memcached C++ wrapper doesn't give error codes

Bug #1206056 reported by cube45
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

The class memcached::Memcached seemed to be great as I am a C++ developer. However, the return types of methods like get or mget are annoying:
Sometimes (for a MEMCACHED_NOTFOUND or a MEMCACHED_DATA_EXISTS for example), the function returns false, but when I get the error codes, it returns MEMCACHED_SUCCESS!

example code:
 std::string key = "key";
 std::vector<char> readData;
 if(!m_memcached->get(key, readData))
  memcached_return_t result = MEMCACHED_SUCCESS;
  m_memcached->error(result);//result can be MEMCACHED_SUCCESS here!

Tags: cpp
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.