MEMCACHED_RETURN_T(3)
π MEMCACHED_RETURN_T π
okay bestie, welcome to MEMCACHED_RETURN_T(3) β this one's from libmemcached-awesome and it's literally just the encyclopedia of every return value the library can hand back to you. every success, every fail, every "girl what happened". it's giving receipts. π§Ύβ¨
πΈ NAME πΈ
memcached_return_t β return type values. aka the whole mood ring of libmemcached. π
π¦ SYNOPSIS π¦
first things first, include the header and link the lib, no skipping:
#include <libmemcached/memcached.h>
Compile and link with -lmemcached
then you got your four vibe-checker functions, all taking a memcached_return_t rc and handing you back a bool:
bool memcached_success(memcached_return_t rc)
bool memcached_continue(memcached_return_t rc)
bool memcached_failed(memcached_return_t rc)
bool memcached_fatal(memcached_return_t rc)
and the type itself is just an enum wearing a lil typedef hat:
typedef enum memcached_return_t memcached_return_t
enum memcached_return_t
β¨ the enumerators, aka the whole cast β¨
every single one, in order, no skips, no cuts. π
MEMCACHED_AUTH_CONTINUEβ authentication has been paused. it's not over, it's just on hold bestie.MEMCACHED_AUTH_FAILUREβ the credentials you handed over are not valid for this server. wrong password energy fr.MEMCACHED_AUTH_PROBLEMβ something unknown went sideways during authentication. no idea what, just chaos. πMEMCACHED_BAD_KEY_PROVIDEDβ the key you gave is not a valid key. not a key, bestie.MEMCACHED_BUFFEREDβ the request has been buffered. it's chilling in the queue, it'll go. π«ΆMEMCACHED_CLIENT_ERRORβ an unknown client error popped off internally. internally, mind you.MEMCACHED_CONNECTION_BIND_FAILUREβ deprecated since version<0.30. back in the day this meant we were not able tobind()to the socket. rip to her. πͺ¦MEMCACHED_CONNECTION_FAILUREβ an unknown error went down while trying to connect to a server. πMEMCACHED_CONNECTION_SOCKET_CREATE_FAILUREβ deprecated since version<0.30. an error happened while trying to connect to a server. it's likely that either the number of file descriptors need to be increased or you are out of memory. so like, either raise your fd limit or free some RAM.MEMCACHED_DATA_DOES_NOT_EXISTβ the data you asked for with that key was not found. it's simply not there. πMEMCACHED_DATA_EXISTSβ the data requested with the key given was not found. yes bestie that is literally what it says, I am not editorializing, this is a real line in the real docs πMEMCACHED_DELETEDβ the object requested by the key has been deleted. gone. bye. β¨MEMCACHED_DEPRECATEDβ the method you requested has been deprecated. it's giving vintage.MEMCACHED_E2BIGβ item is too large for the server to store. too big, bestie, it does not fit.MEMCACHED_ENDβ the server has completed returning all of the objects requested. that's a wrap, that's the end of the list, slay. πMEMCACHED_ERRNOβ an error happened in the driver, and the driver went and seterrno. go check it. πMEMCACHED_FAIL_UNIX_SOCKETβ a connection was not established with the server via a unix domain socket. no socket, no service.MEMCACHED_FAILUREβ deprecated since version<0.30. an unknown failure happened in the server. (grammar is "a unknown" in the source, we keep it, we love it π«Ά)MEMCACHED_FETCH_NOTFINISHEDβ a request has been made, but the server has not finished the fetch of the last request. hold on, she's still working.MEMCACHED_HOST_LOOKUP_FAILUREβ a DNS failure has occurred. the name did not resolve, the vibes did not resolve. πMEMCACHED_INVALID_ARGUMENTSβ the arguments supplied to the given function were not valid. check your args bestie.MEMCACHED_INVALID_HOST_PROTOCOLβ the server you're connecting to has an invalid protocol. most likely you are connecting to an older server that does not speak the binary protocol. she's old, she doesn't speak the language.MEMCACHED_ITEMβ an item has been fetched (this is an internal error only).MEMCACHED_KEY_TOO_BIGβ the key you provided is too large for the given server. big key, small server.MEMCACHED_MAXIMUM_RETURNβ this in an internal only state. (yes, "this in an" β verbatim, keeping it π )MEMCACHED_MEMORY_ALLOCATION_FAILUREβ an error happened while trying to allocate memory. oom moment. πMEMCACHED_NO_KEY_PROVIDEDβ deprecated since version<0.30: useMEMCACHED_BAD_KEY_PROVIDEDinstead. no key was provided. zero keys. none. nada.MEMCACHED_NO_SERVERSβ no servers have been added to thememcached_stobject. you have an empty roster, bestie.MEMCACHED_NOTFOUNDβ the object requested was not found. πMEMCACHED_NOTSTOREDβ the request to store an object failed. it did not go in the box. π¦MEMCACHED_NOT_SUPPORTEDβ the given method is not supported in the server. not a thing here.MEMCACHED_PARSE_ERRORβ an error happened while trying to parse the configuration string. you should usememparseto determine what the error was. π§MEMCACHED_PARSE_USER_ERRORβ an error happened in parsing the configuration string. (that's "occurred in" with two spaces in the source β iconic, untouched β¨)MEMCACHED_PARTIAL_READβ the read was only partially successful. half a read. not nothing, but not everything.MEMCACHED_PROTOCOL_ERRORβ an unknown error happened in the protocol. π€·MEMCACHED_READ_FAILUREβ a read failure has occurred. πβMEMCACHED_SERVER_ERRORβ an unknown error happened in the server. not your fault, it's the server's.MEMCACHED_SERVER_MARKED_DEADβ the requested server has been marked dead. she's dead, bestie. marked and everything. πͺ¦MEMCACHED_SOME_ERRORSβ a multi request has been made, and some undetermined number of errors have occurred. how many? unclear. but there are some.MEMCACHED_STATβ a "stat" command has been returned in the protocol. πMEMCACHED_STOREDβ the requested object has been successfully stored on the server. ATE. πMEMCACHED_SUCCESSβ the request was successfully executed. the good one. the moment. we love to see it. πMEMCACHED_TIMEOUTβ operation has timed out. β°MEMCACHED_UNKNOWN_READ_FAILUREβ an unknown read failure only occurs when either there is a bug in the server, or in rare cases where an ethernet nic is reporting dubious information. dubious information. that's the phrase. take it in.MEMCACHED_UNKNOWN_STAT_KEYβ the server you're communicating with has a stat key which has not be defined in the protocol. ("has not be defined" β verbatim, we stan π«Ά)MEMCACHED_VALUEβ a value has been returned from the server (this is an internal condition only).MEMCACHED_WRITE_FAILUREβ an error happened while trying to write to a server. βοΈβ
π SEE ALSO π
go read the rest of the fam, they're all right here:
quick lil reminder bestie: nothing here is made up and nothing here is left out β every enumerator, every deprecation, every typo, all of it is exactly as the original says. the vibes are mine, the facts are hers. π«Ά
okay that's the whole page, you ate, go #include <libmemcached/memcached.h> and handle your return codes like the main character you are. π
β signed, sealed, and shipped with libmemcached-awesome, version 1.1, dated Jul 24, 2025 β¨ππ
π¦ where this page comes from
- fedora 43: libmemcached-awesome-devel 1.1.4-7.fc43 Β· BSD-3-Clause
- fedora 43: libmemcached-awesome-devel 1.1.4-7.fc43 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms