Memcac...stants(3pm)
β¨ Memcached::libmemcached::constants β¨
okay bestie, welcome to the glow-up era of the Memcached::libmemcached::constants page from section 3pm (that's the Perl user-contributed docs section, for those of us keeping score π
). This whole page is basically a receipts list β no plot twists, just every single constant libmemcached hands you. π
πΈ NAME
Memcached::libmemcached::constants β no cap, this is literally the doc that lists all the constants defined by libmemcached. that's the whole job. iconic behavior honestly. π
π DESCRIPTION
This file just lists all the constants defined by libmemcached which are available to import via the Memcached::libmemcached module. π¦
Every single constant can be imported individually by name, one at a time, like the little main character it is. And groups of related constants β think the elements of an enum type, all sitting together at the same lunch table β can be imported as a set using a :tag name. π«
if you wanna know more about how tags work, go see Exporter. she explains the whole tag situation way better than I ever could. π
π TAGS
π :defines
the OGs, the foundational lil numbers, the constants who don't need a fancy enum to justify themselves:
MEMCACHED_CONTINUUM_ADDITIONMEMCACHED_CONTINUUM_SIZEMEMCACHED_DEFAULT_CONNECT_TIMEOUTMEMCACHED_DEFAULT_PORTMEMCACHED_DEFAULT_TIMEOUTMEMCACHED_EXPIRATION_NOT_ADDMEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTHMEMCACHED_MAX_BUFFERMEMCACHED_MAX_HOST_SORT_LENGTHMEMCACHED_MAX_KEYMEMCACHED_POINTS_PER_SERVERMEMCACHED_POINTS_PER_SERVER_KETAMAMEMCACHED_PREFIX_KEY_MAX_SIZEMEMCACHED_SERVER_FAILURE_DEAD_TIMEOUTMEMCACHED_SERVER_FAILURE_LIMITMEMCACHED_SERVER_FAILURE_RETRY_TIMEOUTMEMCACHED_SERVER_TIMEOUT_LIMITMEMCACHED_STRIDEMEMCACHED_VERSION_STRING_LENGTH
π :memcached_behavior_t
the behavior squad π every vibe you can set on your memcached client:
MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTSMEMCACHED_BEHAVIOR_BINARY_PROTOCOLMEMCACHED_BEHAVIOR_BUFFER_REQUESTSMEMCACHED_BEHAVIOR_CACHE_LOOKUPSMEMCACHED_BEHAVIOR_CONNECT_TIMEOUTMEMCACHED_BEHAVIOR_CORKMEMCACHED_BEHAVIOR_DEAD_TIMEOUTMEMCACHED_BEHAVIOR_DISTRIBUTIONMEMCACHED_BEHAVIOR_HASHMEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEYMEMCACHED_BEHAVIOR_IO_BYTES_WATERMARKMEMCACHED_BEHAVIOR_IO_KEY_PREFETCHMEMCACHED_BEHAVIOR_IO_MSG_WATERMARKMEMCACHED_BEHAVIOR_KETAMAMEMCACHED_BEHAVIOR_KETAMA_HASHMEMCACHED_BEHAVIOR_KETAMA_WEIGHTEDMEMCACHED_BEHAVIOR_LOAD_FROM_FILEMEMCACHED_BEHAVIOR_MAXMEMCACHED_BEHAVIOR_NOREPLYMEMCACHED_BEHAVIOR_NO_BLOCKMEMCACHED_BEHAVIOR_NUMBER_OF_REPLICASMEMCACHED_BEHAVIOR_POLL_TIMEOUTMEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READMEMCACHED_BEHAVIOR_RCV_TIMEOUTMEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERSMEMCACHED_BEHAVIOR_RETRY_TIMEOUTMEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMITMEMCACHED_BEHAVIOR_SERVER_TIMEOUT_LIMITMEMCACHED_BEHAVIOR_SND_TIMEOUTMEMCACHED_BEHAVIOR_SOCKET_RECV_SIZEMEMCACHED_BEHAVIOR_SOCKET_SEND_SIZEMEMCACHED_BEHAVIOR_SORT_HOSTSMEMCACHED_BEHAVIOR_SUPPORT_CASMEMCACHED_BEHAVIOR_TCP_KEEPALIVEMEMCACHED_BEHAVIOR_TCP_KEEPIDLEMEMCACHED_BEHAVIOR_TCP_NODELAYMEMCACHED_BEHAVIOR_USER_DATAMEMCACHED_BEHAVIOR_USE_UDPMEMCACHED_BEHAVIOR_VERIFY_KEY
π :memcached_callback_t
callbacks, aka the "call me when something happens" girlies πβ¨:
MEMCACHED_CALLBACK_CLEANUP_FUNCTIONMEMCACHED_CALLBACK_CLONE_FUNCTIONMEMCACHED_CALLBACK_DELETE_TRIGGERMEMCACHED_CALLBACK_GET_FAILUREMEMCACHED_CALLBACK_MAXMEMCACHED_CALLBACK_NAMESPACEMEMCACHED_CALLBACK_PREFIX_KEYMEMCACHED_CALLBACK_USER_DATA
π¦ :memcached_connection_t
how are we even talking to the server, bestie? three options, pick your fighter:
MEMCACHED_CONNECTION_TCPMEMCACHED_CONNECTION_UDPMEMCACHED_CONNECTION_UNIX_SOCKET
πΈ :memcached_hash_t
the hashing roster β every algorithm walking the runway π:
MEMCACHED_HASH_CRCMEMCACHED_HASH_CUSTOMMEMCACHED_HASH_DEFAULTMEMCACHED_HASH_FNV1A_32MEMCACHED_HASH_FNV1A_64MEMCACHED_HASH_FNV1_32MEMCACHED_HASH_FNV1_64MEMCACHED_HASH_HSIEHMEMCACHED_HASH_JENKINSMEMCACHED_HASH_MAXMEMCACHED_HASH_MD5MEMCACHED_HASH_MURMURMEMCACHED_HASH_MURMUR3
π :memcached_return_t
the return codes!! every possible mood your memcached call can wake up in β successes, failures, and the whole dramatic spectrum in between ππ the way this list goes on fr fr:
MEMCACHED_AUTH_CONTINUEMEMCACHED_AUTH_FAILUREMEMCACHED_AUTH_PROBLEMMEMCACHED_BAD_KEY_PROVIDEDMEMCACHED_BUFFEREDMEMCACHED_CLIENT_ERRORMEMCACHED_CONNECTION_BIND_FAILUREMEMCACHED_CONNECTION_FAILUREMEMCACHED_CONNECTION_SOCKET_CREATE_FAILUREMEMCACHED_DATA_DOES_NOT_EXISTMEMCACHED_DATA_EXISTSMEMCACHED_DELETEDMEMCACHED_DEPRECATEDMEMCACHED_E2BIGMEMCACHED_ENDMEMCACHED_ERRNOMEMCACHED_ERRORMEMCACHED_FAILUREMEMCACHED_FAIL_UNIX_SOCKETMEMCACHED_FETCH_NOTFINISHEDMEMCACHED_HOST_LOOKUP_FAILUREMEMCACHED_INVALID_ARGUMENTSMEMCACHED_INVALID_HOST_PROTOCOLMEMCACHED_IN_PROGRESSMEMCACHED_ITEMMEMCACHED_KEY_TOO_BIGMEMCACHED_MAXIMUM_RETURNMEMCACHED_MEMORY_ALLOCATION_FAILUREMEMCACHED_NOTFOUNDMEMCACHED_NOTSTOREDMEMCACHED_NOT_SUPPORTEDMEMCACHED_NO_KEY_PROVIDEDMEMCACHED_NO_SERVERSMEMCACHED_PARSE_ERRORMEMCACHED_PARSE_USER_ERRORMEMCACHED_PARTIAL_READMEMCACHED_PROTOCOL_ERRORMEMCACHED_READ_FAILUREMEMCACHED_SERVER_ERRORMEMCACHED_SERVER_MARKED_DEADMEMCACHED_SERVER_MEMORY_ALLOCATION_FAILUREMEMCACHED_SERVER_TEMPORARILY_DISABLEDMEMCACHED_SOME_ERRORSMEMCACHED_STATMEMCACHED_STOREDMEMCACHED_SUCCESSMEMCACHED_TIMEOUTMEMCACHED_UNKNOWN_READ_FAILUREMEMCACHED_UNKNOWN_STAT_KEYMEMCACHED_VALUEMEMCACHED_WRITE_FAILURE
π₯ :memcached_server_distribution_t
and finally, how we're spreading keys across servers β the distribution clique, all eight of them, slaying in their own way π
MEMCACHED_DISTRIBUTION_CONSISTENTMEMCACHED_DISTRIBUTION_CONSISTENT_KETAMAMEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPYMEMCACHED_DISTRIBUTION_CONSISTENT_MAXMEMCACHED_DISTRIBUTION_CONSISTENT_WEIGHTEDMEMCACHED_DISTRIBUTION_MODULAMEMCACHED_DISTRIBUTION_RANDOMMEMCACHED_DISTRIBUTION_VIRTUAL_BUCKET
and that's the whole page, no crumbs left, we ate and left no evidence π«Ά
this was served to you by perl v5.42.3, dated 2026-08-19 β thanks for reading my little documentation era, bestie. mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: libmemcached-libmemcached-perl 1.001801+dfsg-6build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms