memcached_last_error - libmemcached Documentation
Contents
Description
Retrieve error codes and messages.
Name
memcached_last_error - libmemcached Documentation
Return Value
memcached_last_error() returns the last error code.
memcached_last_error_message() returns the last error message. If this error came from a specific server,
its hostname and port will be provided in the error message. Any error message will be returned as 'const
char *' which does not need to be de-allocated. NULL will be returned if no error has occurred.
memcached_last_error_errno() returns any last local error code obtained from errno(3).
See Also
memcached(1)errno(3)libmemcached(3)memcached_strerror(3)
1.1 Mar 31, 2024 MEMCACHED_LAST_ERROR(3)
Synopsis
#include<libmemcached/memcached.h>
Compile and link with -lmemcached
memcached_return_tmemcached_last_error(constmemcached_st*ptr)Parametersptr -- pointer to an initialized memcached_st struct
Returnsmemcached_return_t indicating success of last operation
constchar*memcached_last_error_message(constmemcached_st*ptr)Parametersptr -- pointer to an initialized memcached_st struct
Returns
message describing the status of last operation
intmemcached_last_error_errno(constmemcached_st*ptr)Parametersptr -- pointer to an initialized memcached_st struct
Returnserrno(3) (if any) of last operation
