#include "common.h"
-char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_return rc)
+const char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_return rc)
{
switch (rc)
{
return "SERVER VALUE";
case MEMCACHED_STAT:
return "STAT VALUE";
+ case MEMCACHED_ITEM:
+ return "ITEM VALUE";
case MEMCACHED_ERRNO:
return "SYSTEM ERROR";
case MEMCACHED_FAIL_UNIX_SOCKET:
return "SERVER IS MARKED DEAD";
case MEMCACHED_UNKNOWN_STAT_KEY:
return "ENCOUNTERED AN UNKNOWN STAT KEY";
+ case MEMCACHED_E2BIG:
+ return "ITEM TOO BIG";
+ case MEMCACHED_INVALID_ARGUMENTS:
+ return "INVALID ARGUMENTS";
case MEMCACHED_MAXIMUM_RETURN:
return "Gibberish returned!";
default:
return "Gibberish returned!";
- };
+ }
}