Enables or disables payload compression. When enabled, * item values longer than a certain threshold (currently 100 bytes) will be * compressed during storage and decompressed during retrieval * transparently.
*Type: boolean, default: TRUE.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_COMPRESSION = -1001; public const OPT_COMPRESSION_TYPE = -1004; /** *This can be used to create a "domain" for your item keys. The value * specified here will be prefixed to each of the keys. It cannot be * longer than 128 characters and will reduce the * maximum available key size. The prefix is applied only to the item keys, * not to the server keys.
*Type: string, default: "".
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_PREFIX_KEY = -1002; /** ** Specifies the serializer to use for serializing non-scalar values. * The valid serializers are Memcached::SERIALIZER_PHP * or Memcached::SERIALIZER_IGBINARY. The latter is * supported only when memcached is configured with * --enable-memcached-igbinary option and the * igbinary extension is loaded. *
*Type: integer, default: Memcached::SERIALIZER_PHP.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_SERIALIZER = -1003; /** *Indicates whether igbinary serializer support is available.
*Type: boolean.
* @link https://php.net/manual/en/memcached.constants.php */ public const HAVE_IGBINARY = false; /** *Indicates whether JSON serializer support is available.
*Type: boolean.
* @link https://php.net/manual/en/memcached.constants.php */ public const HAVE_JSON = false; /** *Indicates whether msgpack serializer support is available.
*Type: boolean.
* Available as of Memcached 3.0.0. * @since 3.0.0 * @link https://php.net/manual/en/memcached.constants.php */ public const HAVE_MSGPACK = false; /** *Indicate whether set_encoding_key is available
*Type: boolean.
* @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php, https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c#L4387 */ public const HAVE_ENCODING = false; /** * Feature support */ public const HAVE_SESSION = true; public const HAVE_SASL = false; /** *Specifies the hashing algorithm used for the item keys. The valid * values are supplied via Memcached::HASH_* constants. * Each hash algorithm has its advantages and its disadvantages. Go with the * default if you don't know or don't care.
*Type: integer, default: Memcached::HASH_DEFAULT
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_HASH = 2; /** *The default (Jenkins one-at-a-time) item key hashing algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const HASH_DEFAULT = 0; /** *MD5 item key hashing algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const HASH_MD5 = 1; /** *CRC item key hashing algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const HASH_CRC = 2; /** *FNV1_64 item key hashing algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const HASH_FNV1_64 = 3; /** *FNV1_64A item key hashing algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const HASH_FNV1A_64 = 4; /** *FNV1_32 item key hashing algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const HASH_FNV1_32 = 5; /** *FNV1_32A item key hashing algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const HASH_FNV1A_32 = 6; /** *Hsieh item key hashing algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const HASH_HSIEH = 7; /** *Murmur item key hashing algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const HASH_MURMUR = 8; /** *Specifies the method of distributing item keys to the servers. * Currently supported methods are modulo and consistent hashing. Consistent * hashing delivers better distribution and allows servers to be added to * the cluster with minimal cache losses.
*Type: integer, default: Memcached::DISTRIBUTION_MODULA.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_DISTRIBUTION = 9; /** *Modulo-based key distribution algorithm.
* @link https://php.net/manual/en/memcached.constants.php */ public const DISTRIBUTION_MODULA = 0; /** *Consistent hashing key distribution algorithm (based on libketama).
* @link https://php.net/manual/en/memcached.constants.php */ public const DISTRIBUTION_CONSISTENT = 1; public const DISTRIBUTION_VIRTUAL_BUCKET = 6; /** *Enables or disables compatibility with libketama-like behavior. When * enabled, the item key hashing algorithm is set to MD5 and distribution is * set to be weighted consistent hashing distribution. This is useful * because other libketama-based clients (Python, Ruby, etc.) with the same * server configuration will be able to access the keys transparently. *
** It is highly recommended to enable this option if you want to use * consistent hashing, and it may be enabled by default in future * releases. *
*Type: boolean, default: FALSE.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_LIBKETAMA_COMPATIBLE = 16; public const OPT_LIBKETAMA_HASH = 17; public const OPT_TCP_KEEPALIVE = 32; /** *Enables or disables buffered I/O. Enabling buffered I/O causes * storage commands to "buffer" instead of being sent. Any action that * retrieves data causes this buffer to be sent to the remote connection. * Quitting the connection or closing down the connection will also cause * the buffered data to be pushed to the remote connection.
*Type: boolean, default: FALSE.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_BUFFER_WRITES = 10; /** *Enable the use of the binary protocol. Please note that you cannot * toggle this option on an open connection.
*Type: boolean, default: FALSE.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_BINARY_PROTOCOL = 18; /** *Enables or disables asynchronous I/O. This is the fastest transport * available for storage functions.
*Type: boolean, default: FALSE.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_NO_BLOCK = 0; /** *Enables or disables the no-delay feature for connecting sockets (may * be faster in some environments).
*Type: boolean, default: FALSE.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_TCP_NODELAY = 1; /** *The maximum socket send buffer in bytes.
*Type: integer, default: varies by platform/kernel * configuration.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_SOCKET_SEND_SIZE = 4; /** *The maximum socket receive buffer in bytes.
*Type: integer, default: varies by platform/kernel * configuration.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_SOCKET_RECV_SIZE = 5; /** *In non-blocking mode this set the value of the timeout during socket * connection, in milliseconds.
*Type: integer, default: 1000.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_CONNECT_TIMEOUT = 14; /** *The amount of time, in seconds, to wait until retrying a failed * connection attempt.
*Type: integer, default: 0.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_RETRY_TIMEOUT = 15; /** *Socket sending timeout, in microseconds. In cases where you cannot * use non-blocking I/O this will allow you to still have timeouts on the * sending of data.
*Type: integer, default: 0.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_SEND_TIMEOUT = 19; /** *Socket reading timeout, in microseconds. In cases where you cannot * use non-blocking I/O this will allow you to still have timeouts on the * reading of data.
*Type: integer, default: 0.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_RECV_TIMEOUT = 20; /** *Timeout for connection polling, in milliseconds.
*Type: integer, default: 1000.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_POLL_TIMEOUT = 8; /** *Enables or disables caching of DNS lookups.
*Type: boolean, default: FALSE.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_CACHE_LOOKUPS = 6; /** *Specifies the failure limit for server connection attempts. The * server will be removed after this many continuous connection * failures.
*Type: integer, default: 0.
* @link https://php.net/manual/en/memcached.constants.php */ public const OPT_SERVER_FAILURE_LIMIT = 21; public const OPT_AUTO_EJECT_HOSTS = 28; public const OPT_HASH_WITH_PREFIX_KEY = 25; public const OPT_NOREPLY = 26; public const OPT_SORT_HOSTS = 12; public const OPT_VERIFY_KEY = 13; public const OPT_USE_UDP = 27; public const OPT_NUMBER_OF_REPLICAS = 29; public const OPT_RANDOMIZE_REPLICA_READ = 30; public const OPT_CORK = 31; public const OPT_REMOVE_FAILED_SERVERS = 35; public const OPT_DEAD_TIMEOUT = 36; public const OPT_SERVER_TIMEOUT_LIMIT = 37; public const OPT_MAX = 38; public const OPT_IO_BYTES_WATERMARK = 23; public const OPT_IO_KEY_PREFETCH = 24; public const OPT_IO_MSG_WATERMARK = 22; public const OPT_LOAD_FROM_FILE = 34; public const OPT_SUPPORT_CAS = 7; public const OPT_TCP_KEEPIDLE = 33; public const OPT_USER_DATA = 11; /** * libmemcached result codes */ /** *The operation was successful.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_SUCCESS = 0; /** *The operation failed in some fashion.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_FAILURE = 1; /** *DNS lookup failed.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_HOST_LOOKUP_FAILURE = 2; /** *Failed to read network data.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_UNKNOWN_READ_FAILURE = 7; /** *Bad command in memcached protocol.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_PROTOCOL_ERROR = 8; /** *Error on the client side.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_CLIENT_ERROR = 9; /** *Error on the server side.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_SERVER_ERROR = 10; /** *Failed to write network data.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_WRITE_FAILURE = 5; /** *Failed to do compare-and-swap: item you are trying to store has been * modified since you last fetched it.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_DATA_EXISTS = 12; /** *Item was not stored: but not because of an error. This normally * means that either the condition for an "add" or a "replace" command * wasn't met, or that the item is in a delete queue.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_NOTSTORED = 14; /** *Item with this key was not found (with "get" operation or "cas" * operations).
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_NOTFOUND = 16; /** *Partial network data read error.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_PARTIAL_READ = 18; /** *Some errors occurred during multi-get.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_SOME_ERRORS = 19; /** *Server list is empty.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_NO_SERVERS = 20; /** *End of result set.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_END = 21; /** *System error.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_ERRNO = 26; /** *The operation was buffered.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_BUFFERED = 32; /** *The operation timed out.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_TIMEOUT = 31; /** *Bad key.
* @link https://php.net/manual/en/memcached.constants.php, http://docs.libmemcached.org/index.html */ /** *MEMCACHED_BAD_KEY_PROVIDED: The key provided is not a valid key.
*/ public const RES_BAD_KEY_PROVIDED = 33; /** *MEMCACHED_STORED: The requested object has been successfully stored on the server.
*/ public const RES_STORED = 15; /** *MEMCACHED_DELETED: The object requested by the key has been deleted.
*/ public const RES_DELETED = 22; /** *MEMCACHED_STAT: A “stat” command has been returned in the protocol.
*/ public const RES_STAT = 24; /** *MEMCACHED_ITEM: An item has been fetched (this is an internal error only).
*/ public const RES_ITEM = 25; /** *MEMCACHED_NOT_SUPPORTED: The given method is not supported in the server.
*/ public const RES_NOT_SUPPORTED = 28; /** *MEMCACHED_FETCH_NOTFINISHED: A request has been made, but the server has not finished the fetch of the last request.
*/ public const RES_FETCH_NOTFINISHED = 30; /** *MEMCACHED_SERVER_MARKED_DEAD: The requested server has been marked dead.
*/ public const RES_SERVER_MARKED_DEAD = 35; /** *MEMCACHED_UNKNOWN_STAT_KEY: The server you are communicating with has a stat key which has not be defined in the protocol.
*/ public const RES_UNKNOWN_STAT_KEY = 36; /** *MEMCACHED_INVALID_HOST_PROTOCOL: The server you are connecting too has an invalid protocol. Most likely you are connecting to an older server that does not speak the binary protocol.
*/ public const RES_INVALID_HOST_PROTOCOL = 34; /** *MEMCACHED_MEMORY_ALLOCATION_FAILURE: An error has occurred while trying to allocate memory.
*/ public const RES_MEMORY_ALLOCATION_FAILURE = 17; /** *MEMCACHED_E2BIG: Item is too large for the server to store.
*/ public const RES_E2BIG = 37; /** *MEMCACHED_KEY_TOO_BIG: The key that has been provided is too large for the given server.
*/ public const RES_KEY_TOO_BIG = 39; /** *MEMCACHED_SERVER_TEMPORARILY_DISABLED
*/ public const RES_SERVER_TEMPORARILY_DISABLED = 47; /** *MEMORY_ALLOCATION_FAILURE: An error has occurred while trying to allocate memory. * * #if defined(LIBMEMCACHED_VERSION_HEX) && LIBMEMCACHED_VERSION_HEX >= 0x01000008
*/ public const RES_SERVER_MEMORY_ALLOCATION_FAILURE = 48; /** *MEMCACHED_AUTH_PROBLEM: An unknown issue has occured during authentication.
*/ public const RES_AUTH_PROBLEM = 40; /** *MEMCACHED_AUTH_FAILURE: The credentials provided are not valid for this server.
*/ public const RES_AUTH_FAILURE = 41; /** *MEMCACHED_AUTH_CONTINUE: Authentication has been paused.
*/ public const RES_AUTH_CONTINUE = 42; /** *MEMCACHED_CONNECTION_FAILURE: A unknown error has occured while trying to connect to a server.
*/ public const RES_CONNECTION_FAILURE = 3; /** * MEMCACHED_CONNECTION_BIND_FAILURE: We were not able to bind() to the socket. */ #[Deprecated('Deprecated since version 0.30(libmemcached)')] public const RES_CONNECTION_BIND_FAILURE = 4; /** *MEMCACHED_READ_FAILURE: A read failure has occurred.
*/ public const RES_READ_FAILURE = 6; /** *MEMCACHED_DATA_DOES_NOT_EXIST: The data requested with the key given was not found.
*/ public const RES_DATA_DOES_NOT_EXIST = 13; /** *MEMCACHED_VALUE: A value has been returned from the server (this is an internal condition only).
*/ public const RES_VALUE = 23; /** *MEMCACHED_FAIL_UNIX_SOCKET: A connection was not established with the server via a unix domain socket.
*/ public const RES_FAIL_UNIX_SOCKET = 27; /** * No key was provided. */ #[Deprecated('Deprecated since version 0.30 (libmemcached). Use MEMCACHED_BAD_KEY_PROVIDED instead.')] public const RES_NO_KEY_PROVIDED = 29; /** *MEMCACHED_INVALID_ARGUMENTS: The arguments supplied to the given function were not valid.
*/ public const RES_INVALID_ARGUMENTS = 38; /** *MEMCACHED_PARSE_ERROR: An error has occurred while trying to parse the configuration string. You should use memparse to determine what the error was.
*/ public const RES_PARSE_ERROR = 43; /** *MEMCACHED_PARSE_USER_ERROR: An error has occurred in parsing the configuration string.
*/ public const RES_PARSE_USER_ERROR = 44; /** *MEMCACHED_DEPRECATED: The method that was requested has been deprecated.
*/ public const RES_DEPRECATED = 45; //unknow public const RES_IN_PROGRESS = 46; /** *MEMCACHED_MAXIMUM_RETURN: This in an internal only state.
*/ public const RES_MAXIMUM_RETURN = 49; /** * Server callbacks, if compiled with --memcached-protocol * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php */ public const ON_CONNECT = 0; public const ON_ADD = 1; public const ON_APPEND = 2; public const ON_DECREMENT = 3; public const ON_DELETE = 4; public const ON_FLUSH = 5; public const ON_GET = 6; public const ON_INCREMENT = 7; public const ON_NOOP = 8; public const ON_PREPEND = 9; public const ON_QUIT = 10; public const ON_REPLACE = 11; public const ON_SET = 12; public const ON_STAT = 13; public const ON_VERSION = 14; /** * Constants used when compiled with --memcached-protocol * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php */ public const RESPONSE_SUCCESS = 0; public const RESPONSE_KEY_ENOENT = 1; public const RESPONSE_KEY_EEXISTS = 2; public const RESPONSE_E2BIG = 3; public const RESPONSE_EINVAL = 4; public const RESPONSE_NOT_STORED = 5; public const RESPONSE_DELTA_BADVAL = 6; public const RESPONSE_NOT_MY_VBUCKET = 7; public const RESPONSE_AUTH_ERROR = 32; public const RESPONSE_AUTH_CONTINUE = 33; public const RESPONSE_UNKNOWN_COMMAND = 129; public const RESPONSE_ENOMEM = 130; public const RESPONSE_NOT_SUPPORTED = 131; public const RESPONSE_EINTERNAL = 132; public const RESPONSE_EBUSY = 133; public const RESPONSE_ETMPFAIL = 134; /** *Failed to create network socket.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_CONNECTION_SOCKET_CREATE_FAILURE = 11; /** *Payload failure: could not compress/decompress or serialize/unserialize the value.
* @link https://php.net/manual/en/memcached.constants.php */ public const RES_PAYLOAD_FAILURE = -1001; /** *The default PHP serializer.
* @link https://php.net/manual/en/memcached.constants.php */ public const SERIALIZER_PHP = 1; /** *The igbinary serializer. * Instead of textual representation it stores PHP data structures in a * compact binary form, resulting in space and time gains.
* @link https://php.net/manual/en/memcached.constants.php */ public const SERIALIZER_IGBINARY = 2; /** *The JSON serializer. Requires PHP 5.2.10+.
* @link https://php.net/manual/en/memcached.constants.php */ public const SERIALIZER_JSON = 3; public const SERIALIZER_JSON_ARRAY = 4; /** *The msgpack serializer.
* @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php */ public const SERIALIZER_MSGPACK = 5; public const COMPRESSION_FASTLZ = 2; public const COMPRESSION_ZLIB = 1; /** *A flag for Memcached::getMulti and * Memcached::getMultiByKey to ensure that the keys are * returned in the same order as they were requested in. Non-existing keys * get a default value of NULL.
* @link https://php.net/manual/en/memcached.constants.php */ public const GET_PRESERVE_ORDER = 1; /** * A flag for Memcached::get(), Memcached::getMulti() and * Memcached::getMultiByKey() to ensure that the CAS token values are returned as well. * @link https://php.net/manual/en/memcached.constants.php * @since 3.0.0 */ public const GET_EXTENDED = 2; public const GET_ERROR_RETURN_VALUE = false; /** * (PECL memcached >= 0.1.0)* The key of the item to retrieve. *
* @param callable $cache_cb [optional]* Read-through caching callback or NULL. *
* @param int $flags [optional]* The flags for the get operation. *
* @return mixed the value stored in the cache or FALSE otherwise. * The Memcached::getResultCode will return * Memcached::RES_NOTFOUND if the key does not exist. */ public function get($key, callable $cache_cb = null, $flags = 0) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key of the item to fetch. *
* @param callable $cache_cb [optional]* Read-through caching callback or NULL *
* @param int $flags [optional]* The flags for the get operation. *
* @return mixed the value stored in the cache or FALSE otherwise. * The Memcached::getResultCode will return * Memcached::RES_NOTFOUND if the key does not exist. */ public function getByKey($server_key, $key, callable $cache_cb = null, $flags = 0) {} /** * (PECL memcached >= 0.1.0)* Array of keys to retrieve. *
* @param int $flags [optional]* The flags for the get operation. *
* @return mixed the array of found items or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function getMulti(array $keys, $flags = 0) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param array $keys* Array of keys to retrieve. *
* @param int $flags [optional]* The flags for the get operation. *
* @return array|false the array of found items or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function getMultiByKey($server_key, array $keys, $flags = 0) {} /** * (PECL memcached >= 0.1.0)* Array of keys to request. *
* @param bool $with_cas [optional]* Whether to request CAS token values also. *
* @param callable $value_cb [optional]* The result callback or NULL. *
* @return bool TRUE on success or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function getDelayed(array $keys, $with_cas = null, callable $value_cb = null) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param array $keys* Array of keys to request. *
* @param bool $with_cas [optional]* Whether to request CAS token values also. *
* @param callable $value_cb [optional]* The result callback or NULL. *
* @return bool TRUE on success or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function getDelayedByKey($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} /** * (PECL memcached >= 0.1.0)* The key under which to store the value. *
* @param mixed $value* The value to store. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function set($key, $value, $expiration = 0, $udf_flags = 0) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key under which to store the value. *
* @param mixed $value* The value to store. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function setByKey($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} /** * (PECL memcached >= 2.0.0)* The key under which to store the value. *
* @param int $expiration* The expiration time, defaults to 0. See Expiration Times for more info. *
* @return bool TRUE on success or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function touch($key, $expiration = 0) {} /** * (PECL memcached >= 2.0.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key under which to store the value. *
* @param int $expiration* The expiration time, defaults to 0. See Expiration Times for more info. *
* @return bool TRUE on success or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function touchByKey($server_key, $key, $expiration) {} /** * (PECL memcached >= 0.1.0)* An array of key/value pairs to store on the server. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function setMulti(array $items, $expiration = 0, $udf_flags = 0) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param array $items* An array of key/value pairs to store on the server. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function setMultiByKey($server_key, array $items, $expiration = 0, $udf_flags = 0) {} /** * (PECL memcached >= 0.1.0)* Unique value associated with the existing item. Generated by memcache. *
* @param string $key* The key under which to store the value. *
* @param mixed $value* The value to store. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_DATA_EXISTS if the item you are trying * to store has been modified since you last fetched it. */ public function cas($cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {} /** * (PECL memcached >= 0.1.0)* Unique value associated with the existing item. Generated by memcache. *
* @param string $server_key* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key under which to store the value. *
* @param mixed $value* The value to store. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_DATA_EXISTS if the item you are trying * to store has been modified since you last fetched it. */ public function casByKey($cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} /** * (PECL memcached >= 0.1.0)* The key under which to store the value. *
* @param mixed $value* The value to store. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTSTORED if the key already exists. */ public function add($key, $value, $expiration = 0, $udf_flags = 0) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key under which to store the value. *
* @param mixed $value* The value to store. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTSTORED if the key already exists. */ public function addByKey($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} /** * (PECL memcached >= 0.1.0)* The key under which to store the value. *
* @param string $value* The string to append. *
* @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTSTORED if the key does not exist. */ public function append($key, $value) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key under which to store the value. *
* @param string $value* The string to append. *
* @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTSTORED if the key does not exist. */ public function appendByKey($server_key, $key, $value) {} /** * (PECL memcached >= 0.1.0)* The key of the item to prepend the data to. *
* @param string $value* The string to prepend. *
* @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTSTORED if the key does not exist. */ public function prepend($key, $value) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key of the item to prepend the data to. *
* @param string $value* The string to prepend. *
* @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTSTORED if the key does not exist. */ public function prependByKey($server_key, $key, $value) {} /** * (PECL memcached >= 0.1.0)* The key under which to store the value. *
* @param mixed $value* The value to store. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTSTORED if the key does not exist. */ public function replace($key, $value, $expiration = null, $udf_flags = 0) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key under which to store the value. *
* @param mixed $value* The value to store. *
* @param int $expiration [optional]* The expiration time, defaults to 0. See Expiration Times for more info. *
* @param int $udf_flags [optional] * @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTSTORED if the key does not exist. */ public function replaceByKey($server_key, $key, $value, $expiration = null, $udf_flags = 0) {} /** * (PECL memcached >= 0.1.0)* The key to be deleted. *
* @param int $time [optional]* The amount of time the server will wait to delete the item. *
* @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTFOUND if the key does not exist. */ public function delete($key, $time = 0) {} /** * (PECL memcached >= 2.0.0)* The keys to be deleted. *
* @param int $time [optional]* The amount of time the server will wait to delete the items. *
* @return array Returns array indexed by keys and where values are indicating whether operation succeeded or not. * The Memcached::getResultCode will return * Memcached::RES_NOTFOUND if the key does not exist. */ public function deleteMulti(array $keys, $time = 0) {} /** * (PECL memcached >= 0.1.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key to be deleted. *
* @param int $time [optional]* The amount of time the server will wait to delete the item. *
* @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTFOUND if the key does not exist. */ public function deleteByKey($server_key, $key, $time = 0) {} /** * (PECL memcached >= 2.0.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param array $keys* The keys to be deleted. *
* @param int $time [optional]* The amount of time the server will wait to delete the items. *
* @return bool TRUE on success or FALSE on failure. * The Memcached::getResultCode will return * Memcached::RES_NOTFOUND if the key does not exist. */ public function deleteMultiByKey($server_key, array $keys, $time = 0) {} /** * (PECL memcached >= 0.1.0)* The key of the item to increment. *
* @param int $offset [optional]* The amount by which to increment the item's value. *
* @param int $initial_value [optional]* The value to set the item to if it doesn't currently exist. *
* @param int $expiry [optional]* The expiry time to set on the item. *
* @return int|false new item's value on success or FALSE on failure. */ public function increment($key, $offset = 1, $initial_value = 0, $expiry = 0) {} /** * (PECL memcached >= 0.1.0)* The key of the item to decrement. *
* @param int $offset [optional]* The amount by which to decrement the item's value. *
* @param int $initial_value [optional]* The value to set the item to if it doesn't currently exist. *
* @param int $expiry [optional]* The expiry time to set on the item. *
* @return int|false item's new value on success or FALSE on failure. */ public function decrement($key, $offset = 1, $initial_value = 0, $expiry = 0) {} /** * (PECL memcached >= 2.0.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key of the item to increment. *
* @param int $offset [optional]* The amount by which to increment the item's value. *
* @param int $initial_value [optional]* The value to set the item to if it doesn't currently exist. *
* @param int $expiry [optional]* The expiry time to set on the item. *
* @return int|false new item's value on success or FALSE on failure. */ public function incrementByKey($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} /** * (PECL memcached >= 2.0.0)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @param string $key* The key of the item to decrement. *
* @param int $offset [optional]* The amount by which to decrement the item's value. *
* @param int $initial_value [optional]* The value to set the item to if it doesn't currently exist. *
* @param int $expiry [optional]* The expiry time to set on the item. *
* @return int|false item's new value on success or FALSE on failure. */ public function decrementByKey($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} /** * (PECL memcached >= 0.1.0)* The hostname of the memcache server. If the hostname is invalid, data-related * operations will set * Memcached::RES_HOST_LOOKUP_FAILURE result code. *
* @param int $port* The port on which memcache is running. Usually, this is * 11211. *
* @param int $weight [optional]* The weight of the server relative to the total weight of all the * servers in the pool. This controls the probability of the server being * selected for operations. This is used only with consistent distribution * option and usually corresponds to the amount of memory available to * memcache on that server. *
* @return bool TRUE on success or FALSE on failure. */ public function addServer($host, $port, $weight = 0) {} /** * (PECL memcached >= 0.1.1)* The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. *
* @return array an array containing three keys of host, * port, and weight on success or FALSE * on failure. * Use Memcached::getResultCode if necessary. */ public function getServerByKey($server_key) {} /** * (PECL memcached >= 2.0.0)items, slabs, sizes ...
* @return array|false Array of server statistics, one entry per server. */ public function getStats($type = null) {} /** * (PECL memcached >= 0.1.5)* Numer of seconds to wait before invalidating the items. *
* @return bool TRUE on success or FALSE on failure. * Use Memcached::getResultCode if necessary. */ public function flush($delay = 0) {} /** * (PECL memcached >= 0.1.0)* One of the Memcached::OPT_* constants. *
* @return mixed the value of the requested option, or FALSE on * error. */ public function getOption($option) {} /** * (PECL memcached >= 0.1.0)* An associative array of options where the key is the option to set and * the value is the new value for the option. *
* @return bool TRUE on success or FALSE on failure. */ public function setOptions(array $options) {} /** * (PECL memcached >= 2.0.0)* The username to use for authentication. *
* @param string $password* The password to use for authentication. *
* @return void */ public function setSaslAuthData(string $username, string $password) {} /** * (PECL memcached >= 2.0.0)