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_ADDITION
  • MEMCACHED_CONTINUUM_SIZE
  • MEMCACHED_DEFAULT_CONNECT_TIMEOUT
  • MEMCACHED_DEFAULT_PORT
  • MEMCACHED_DEFAULT_TIMEOUT
  • MEMCACHED_EXPIRATION_NOT_ADD
  • MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH
  • MEMCACHED_MAX_BUFFER
  • MEMCACHED_MAX_HOST_SORT_LENGTH
  • MEMCACHED_MAX_KEY
  • MEMCACHED_POINTS_PER_SERVER
  • MEMCACHED_POINTS_PER_SERVER_KETAMA
  • MEMCACHED_PREFIX_KEY_MAX_SIZE
  • MEMCACHED_SERVER_FAILURE_DEAD_TIMEOUT
  • MEMCACHED_SERVER_FAILURE_LIMIT
  • MEMCACHED_SERVER_FAILURE_RETRY_TIMEOUT
  • MEMCACHED_SERVER_TIMEOUT_LIMIT
  • MEMCACHED_STRIDE
  • MEMCACHED_VERSION_STRING_LENGTH

πŸ’œ :memcached_behavior_t

the behavior squad πŸ’… every vibe you can set on your memcached client:

  • MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS
  • MEMCACHED_BEHAVIOR_BINARY_PROTOCOL
  • MEMCACHED_BEHAVIOR_BUFFER_REQUESTS
  • MEMCACHED_BEHAVIOR_CACHE_LOOKUPS
  • MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT
  • MEMCACHED_BEHAVIOR_CORK
  • MEMCACHED_BEHAVIOR_DEAD_TIMEOUT
  • MEMCACHED_BEHAVIOR_DISTRIBUTION
  • MEMCACHED_BEHAVIOR_HASH
  • MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY
  • MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK
  • MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH
  • MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK
  • MEMCACHED_BEHAVIOR_KETAMA
  • MEMCACHED_BEHAVIOR_KETAMA_HASH
  • MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED
  • MEMCACHED_BEHAVIOR_LOAD_FROM_FILE
  • MEMCACHED_BEHAVIOR_MAX
  • MEMCACHED_BEHAVIOR_NOREPLY
  • MEMCACHED_BEHAVIOR_NO_BLOCK
  • MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS
  • MEMCACHED_BEHAVIOR_POLL_TIMEOUT
  • MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ
  • MEMCACHED_BEHAVIOR_RCV_TIMEOUT
  • MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS
  • MEMCACHED_BEHAVIOR_RETRY_TIMEOUT
  • MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT
  • MEMCACHED_BEHAVIOR_SERVER_TIMEOUT_LIMIT
  • MEMCACHED_BEHAVIOR_SND_TIMEOUT
  • MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE
  • MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE
  • MEMCACHED_BEHAVIOR_SORT_HOSTS
  • MEMCACHED_BEHAVIOR_SUPPORT_CAS
  • MEMCACHED_BEHAVIOR_TCP_KEEPALIVE
  • MEMCACHED_BEHAVIOR_TCP_KEEPIDLE
  • MEMCACHED_BEHAVIOR_TCP_NODELAY
  • MEMCACHED_BEHAVIOR_USER_DATA
  • MEMCACHED_BEHAVIOR_USE_UDP
  • MEMCACHED_BEHAVIOR_VERIFY_KEY

πŸŽ€ :memcached_callback_t

callbacks, aka the "call me when something happens" girlies πŸ“žβœ¨:

  • MEMCACHED_CALLBACK_CLEANUP_FUNCTION
  • MEMCACHED_CALLBACK_CLONE_FUNCTION
  • MEMCACHED_CALLBACK_DELETE_TRIGGER
  • MEMCACHED_CALLBACK_GET_FAILURE
  • MEMCACHED_CALLBACK_MAX
  • MEMCACHED_CALLBACK_NAMESPACE
  • MEMCACHED_CALLBACK_PREFIX_KEY
  • MEMCACHED_CALLBACK_USER_DATA

πŸ¦‹ :memcached_connection_t

how are we even talking to the server, bestie? three options, pick your fighter:

  • MEMCACHED_CONNECTION_TCP
  • MEMCACHED_CONNECTION_UDP
  • MEMCACHED_CONNECTION_UNIX_SOCKET

🌸 :memcached_hash_t

the hashing roster β€” every algorithm walking the runway 🌈:

  • MEMCACHED_HASH_CRC
  • MEMCACHED_HASH_CUSTOM
  • MEMCACHED_HASH_DEFAULT
  • MEMCACHED_HASH_FNV1A_32
  • MEMCACHED_HASH_FNV1A_64
  • MEMCACHED_HASH_FNV1_32
  • MEMCACHED_HASH_FNV1_64
  • MEMCACHED_HASH_HSIEH
  • MEMCACHED_HASH_JENKINS
  • MEMCACHED_HASH_MAX
  • MEMCACHED_HASH_MD5
  • MEMCACHED_HASH_MURMUR
  • MEMCACHED_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_CONTINUE
  • MEMCACHED_AUTH_FAILURE
  • MEMCACHED_AUTH_PROBLEM
  • MEMCACHED_BAD_KEY_PROVIDED
  • MEMCACHED_BUFFERED
  • MEMCACHED_CLIENT_ERROR
  • MEMCACHED_CONNECTION_BIND_FAILURE
  • MEMCACHED_CONNECTION_FAILURE
  • MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE
  • MEMCACHED_DATA_DOES_NOT_EXIST
  • MEMCACHED_DATA_EXISTS
  • MEMCACHED_DELETED
  • MEMCACHED_DEPRECATED
  • MEMCACHED_E2BIG
  • MEMCACHED_END
  • MEMCACHED_ERRNO
  • MEMCACHED_ERROR
  • MEMCACHED_FAILURE
  • MEMCACHED_FAIL_UNIX_SOCKET
  • MEMCACHED_FETCH_NOTFINISHED
  • MEMCACHED_HOST_LOOKUP_FAILURE
  • MEMCACHED_INVALID_ARGUMENTS
  • MEMCACHED_INVALID_HOST_PROTOCOL
  • MEMCACHED_IN_PROGRESS
  • MEMCACHED_ITEM
  • MEMCACHED_KEY_TOO_BIG
  • MEMCACHED_MAXIMUM_RETURN
  • MEMCACHED_MEMORY_ALLOCATION_FAILURE
  • MEMCACHED_NOTFOUND
  • MEMCACHED_NOTSTORED
  • MEMCACHED_NOT_SUPPORTED
  • MEMCACHED_NO_KEY_PROVIDED
  • MEMCACHED_NO_SERVERS
  • MEMCACHED_PARSE_ERROR
  • MEMCACHED_PARSE_USER_ERROR
  • MEMCACHED_PARTIAL_READ
  • MEMCACHED_PROTOCOL_ERROR
  • MEMCACHED_READ_FAILURE
  • MEMCACHED_SERVER_ERROR
  • MEMCACHED_SERVER_MARKED_DEAD
  • MEMCACHED_SERVER_MEMORY_ALLOCATION_FAILURE
  • MEMCACHED_SERVER_TEMPORARILY_DISABLED
  • MEMCACHED_SOME_ERRORS
  • MEMCACHED_STAT
  • MEMCACHED_STORED
  • MEMCACHED_SUCCESS
  • MEMCACHED_TIMEOUT
  • MEMCACHED_UNKNOWN_READ_FAILURE
  • MEMCACHED_UNKNOWN_STAT_KEY
  • MEMCACHED_VALUE
  • MEMCACHED_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_CONSISTENT
  • MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA
  • MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPY
  • MEMCACHED_DISTRIBUTION_CONSISTENT_MAX
  • MEMCACHED_DISTRIBUTION_CONSISTENT_WEIGHTED
  • MEMCACHED_DISTRIBUTION_MODULA
  • MEMCACHED_DISTRIBUTION_RANDOM
  • MEMCACHED_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