Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 9646

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Predefined Constants</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="memcached.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memcached.expiration.html">Expiration Times</a></div>
 <div class="up"><a href="book.memcached.html">Memcached</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="memcached.constants" class="appendix">
 <h1>Predefined Constants</h1>

 <p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</p>
 <dl>


  
   <dt id="memcached.constants.opt-compression"><strong><code>Memcached::OPT_COMPRESSION</code></strong></dt>

   <dd>

    <p class="para">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.</p>
    <p class="para">Type: <em>boolean</em>, default: <strong><code>TRUE</code></strong>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-serializer"><strong><code>Memcached::OPT_SERIALIZER</code></strong></dt>

   <dd>

    <p class="para">
     Specifies the serializer to use for serializing non-scalar values.
     The valid serializers are <strong><code>Memcached::SERIALIZER_PHP</code></strong>
     or <strong><code>Memcached::SERIALIZER_IGBINARY</code></strong>. The latter is
     supported only when memcached is configured with
     <em>--enable-memcached-igbinary</em> option and the
     <em>igbinary</em> extension is loaded.
    </p>
    <p class="para">Type: <em>integer</em>, default: <strong><code>Memcached::SERIALIZER_PHP</code></strong>.</p>
   </dd>

  

  
   <dt id="memcached.constants.serializer-php"><strong><code>Memcached::SERIALIZER_PHP</code></strong></dt>

   <dd>

    <p class="para">The default PHP serializer.</p>
   </dd>

  

  
   <dt id="memcached.constants.serializer-igbinary"><strong><code>Memcached::SERIALIZER_IGBINARY</code></strong></dt>

   <dd>

    <p class="para">The <a href="https://github.com/igbinary/igbinary" class="link external">&raquo;&nbsp;igbinary</a> serializer.
     Instead of textual representation it stores PHP data structures in a
     compact binary form, resulting in space and time gains.</p>
   </dd>

  

  
   <dt id="memcached.constants.serializer-json"><strong><code>Memcached::SERIALIZER_JSON</code></strong></dt>

   <dd>

    <p class="para">The JSON serializer. Requires PHP 5.2.10+.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-prefix-key"><strong><code>Memcached::OPT_PREFIX_KEY</code></strong></dt>

   <dd>

    <p class="para">This can be used to create a &quot;domain&quot; for your item keys. The value
     specified here will be prefixed to each of the keys. It cannot be
     longer than <em>128</em> characters and will reduce the
     maximum available key size. The prefix is applied only to the item keys,
     not to the server keys.</p>
    <p class="para">Type: <em>string</em>, default: <em>&quot;&quot;</em>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-hash"><strong><code>Memcached::OPT_HASH</code></strong></dt>

   <dd>

    <p class="para">Specifies the hashing algorithm used for the item keys. The valid
     values are supplied via <strong><code>Memcached::HASH_*</code></strong> constants.
     Each hash algorithm has its advantages and its disadvantages. Go with the
     default if you don&#039;t know or don&#039;t care.</p>
    <p class="para">Type: <em>integer</em>, default: <strong><code>Memcached::HASH_DEFAULT</code></strong></p>
   </dd>

  

  
   <dt id="memcached.constants.hash-default"><strong><code>Memcached::HASH_DEFAULT</code></strong></dt>

   <dd>

    <p class="para">The default (Jenkins one-at-a-time) item key hashing algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.hash-md5"><strong><code>Memcached::HASH_MD5</code></strong></dt>

   <dd>

    <p class="para">MD5 item key hashing algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.hash-crc"><strong><code>Memcached::HASH_CRC</code></strong></dt>

   <dd>

    <p class="para">CRC item key hashing algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.hash-fnv1-64"><strong><code>Memcached::HASH_FNV1_64</code></strong></dt>

   <dd>

    <p class="para">FNV1_64 item key hashing algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.hash-fnv1a-64"><strong><code>Memcached::HASH_FNV1A_64</code></strong></dt>

   <dd>

    <p class="para">FNV1_64A item key hashing algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.hash-fnv1-32"><strong><code>Memcached::HASH_FNV1_32</code></strong></dt>

   <dd>

    <p class="para">FNV1_32 item key hashing algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.hash-fnv1a-32"><strong><code>Memcached::HASH_FNV1A_32</code></strong></dt>

   <dd>

    <p class="para">FNV1_32A item key hashing algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.hash-hsieh"><strong><code>Memcached::HASH_HSIEH</code></strong></dt>

   <dd>

    <p class="para">Hsieh item key hashing algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.hash-murmur"><strong><code>Memcached::HASH_MURMUR</code></strong></dt>

   <dd>

    <p class="para">Murmur item key hashing algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-distribution"><strong><code>Memcached::OPT_DISTRIBUTION</code></strong></dt>

   <dd>

    <p class="para">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.</p>
    <p class="para">Type: <em>integer</em>, default: <strong><code>Memcached::DISTRIBUTION_MODULA.</code></strong></p>
   </dd>

  

  
   <dt id="memcached.constants.distribution-modula"><strong><code>Memcached::DISTRIBUTION_MODULA</code></strong></dt>

   <dd>

    <p class="para">Modulo-based key distribution algorithm.</p>
   </dd>

  

  
   <dt id="memcached.constants.distribution-consistent"><strong><code>Memcached::DISTRIBUTION_CONSISTENT</code></strong></dt>

   <dd>

    <p class="para">Consistent hashing key distribution algorithm (based on libketama).</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-libketama-compatible"><strong><code>Memcached::OPT_LIBKETAMA_COMPATIBLE</code></strong></dt>

   <dd>

    <p class="para">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.
    </p>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      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.
     </p>
    </p></blockquote>
    <p class="para">Type: <em>boolean</em>, default: <strong><code>FALSE</code></strong>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-buffer-writes"><strong><code>Memcached::OPT_BUFFER_WRITES</code></strong></dt>

   <dd>

    <p class="para">Enables or disables buffered I/O. Enabling buffered I/O causes
     storage commands to &quot;buffer&quot; 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.</p>
    <p class="para">Type: <em>boolean</em>, default: <strong><code>FALSE</code></strong>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-binary-protocol"><strong><code>Memcached::OPT_BINARY_PROTOCOL</code></strong></dt>

   <dd>

    <p class="para">Enable the use of the binary protocol. Please note that you cannot
     toggle this option on an open connection.</p>
    <p class="para">Type: <em>boolean</em>, default: <strong><code>FALSE</code></strong>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-no-block"><strong><code>Memcached::OPT_NO_BLOCK</code></strong></dt>

   <dd>

    <p class="para">Enables or disables asynchronous I/O. This is the fastest transport
     available for storage functions.</p>
    <p class="para">Type: <em>boolean</em>, default: <strong><code>FALSE</code></strong>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-tcp-nodelay"><strong><code>Memcached::OPT_TCP_NODELAY</code></strong></dt>

   <dd>

    <p class="para">Enables or disables the no-delay feature for connecting sockets (may
     be faster in some environments).</p>
    <p class="para">Type: <em>boolean</em>, default: <strong><code>FALSE</code></strong>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-socket-send-size"><strong><code>Memcached::OPT_SOCKET_SEND_SIZE</code></strong></dt>

   <dd>

    <p class="para">The maximum socket send buffer in bytes.</p>
    <p class="para">Type: <em>integer</em>, default: varies by platform/kernel
     configuration.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-socket-recv-size"><strong><code>Memcached::OPT_SOCKET_RECV_SIZE</code></strong></dt>

   <dd>

    <p class="para">The maximum socket receive buffer in bytes.</p>
    <p class="para">Type: <em>integer</em>, default: varies by platform/kernel
     configuration.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-connect-timeout"><strong><code>Memcached::OPT_CONNECT_TIMEOUT</code></strong></dt>

   <dd>

    <p class="para">In non-blocking mode this set the value of the timeout during socket
     connection, in milliseconds.</p>
    <p class="para">Type: <em>integer</em>, default: <em>1000</em>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-retry-timeout"><strong><code>Memcached::OPT_RETRY_TIMEOUT</code></strong></dt>

   <dd>

    <p class="para">The amount of time, in seconds, to wait until retrying a failed
     connection attempt.</p>
    <p class="para">Type: <em>integer</em>, default: <em>0</em>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-send-timeout"><strong><code>Memcached::OPT_SEND_TIMEOUT</code></strong></dt>

   <dd>

    <p class="para">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.</p>
    <p class="para">Type: <em>integer</em>, default: <em>0</em>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-recv-timeout"><strong><code>Memcached::OPT_RECV_TIMEOUT</code></strong></dt>

   <dd>

    <p class="para">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.</p>
    <p class="para">Type: <em>integer</em>, default: <em>0</em>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-poll-timeout"><strong><code>Memcached::OPT_POLL_TIMEOUT</code></strong></dt>

   <dd>

    <p class="para">Timeout for connection polling, in milliseconds.</p>
    <p class="para">Type: <em>integer</em>, default: <em>1000</em>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-cache-lookups"><strong><code>Memcached::OPT_CACHE_LOOKUPS</code></strong></dt>

   <dd>

    <p class="para">Enables or disables caching of DNS lookups.</p>
    <p class="para">Type: <em>boolean</em>, default: <strong><code>FALSE</code></strong>.</p>
   </dd>

  

  
   <dt id="memcached.constants.opt-server-failure-limit"><strong><code>Memcached::OPT_SERVER_FAILURE_LIMIT</code></strong></dt>

   <dd>

    <p class="para">Specifies the failure limit for server connection attempts. The
     server will be removed after this many continuous connection
     failures.</p>
    <p class="para">Type: <em>integer</em>, default: <em>0</em>.</p>
   </dd>

  

  
   <dt id="memcached.constants.have-igbinary"><strong><code>Memcached::HAVE_IGBINARY</code></strong></dt>

   <dd>

    <p class="para">Indicates whether igbinary serializer support is available.</p>
    <p class="para">Type: <em>boolean</em>.</p>
   </dd>

  

  
   <dt id="memcached.constants.have-json"><strong><code>Memcached::HAVE_JSON</code></strong></dt>

   <dd>

    <p class="para">Indicates whether JSON serializer support is available.</p>
    <p class="para">Type: <em>boolean</em>.</p>
   </dd>

  

  
   <dt id="memcached.constants.have-msgpack"><strong><code>Memcached::HAVE_MSGPACK</code></strong></dt>

   <dd>

    <p class="para">Indicates whether msgpack serializer support is available.</p>
    <p class="para">Type: <em>boolean</em>.</p>
    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.have-session"><strong><code>Memcached::HAVE_SESSION</code></strong></dt>

   <dd>

    <p class="para">Type: <em>boolean</em>.</p>
    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.have-sasl"><strong><code>Memcached::HAVE_SASL</code></strong></dt>

   <dd>

    <p class="para">Type: <em>boolean</em>.</p>
    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.get-extended"><strong><code>Memcached::GET_EXTENDED</code></strong></dt>

   <dd>

    <p class="para">A flag for <span class="function"><a href="memcached.get.html" class="function">Memcached::get()</a></span>, <span class="function"><a href="memcached.getmulti.html" class="function">Memcached::getMulti()</a></span> and
     <span class="function"><a href="memcached.getmultibykey.html" class="function">Memcached::getMultiByKey()</a></span> to ensure that the CAS token values
     are returned as well.</p>
    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.get-preserve-order"><strong><code>Memcached::GET_PRESERVE_ORDER</code></strong></dt>

   <dd>

    <p class="para">A flag for <span class="function"><a href="memcached.getmulti.html" class="function">Memcached::getMulti()</a></span> and
     <span class="function"><a href="memcached.getmultibykey.html" class="function">Memcached::getMultiByKey()</a></span> 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.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-success"><strong><code>Memcached::RES_SUCCESS</code></strong></dt>

   <dd>

    <p class="para">The operation was successful.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-failure"><strong><code>Memcached::RES_FAILURE</code></strong></dt>

   <dd>

    <p class="para">The operation failed in some fashion.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-host-lookup-failure"><strong><code>Memcached::RES_HOST_LOOKUP_FAILURE</code></strong></dt>

   <dd>

    <p class="para">DNS lookup failed.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-unknown-read-failure"><strong><code>Memcached::RES_UNKNOWN_READ_FAILURE</code></strong></dt>

   <dd>

    <p class="para">Failed to read network data.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-protocol-error"><strong><code>Memcached::RES_PROTOCOL_ERROR</code></strong></dt>

   <dd>

    <p class="para">Bad command in memcached protocol.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-client-error"><strong><code>Memcached::RES_CLIENT_ERROR</code></strong></dt>

   <dd>

    <p class="para">Error on the client side.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-server-error"><strong><code>Memcached::RES_SERVER_ERROR</code></strong></dt>

   <dd>

    <p class="para">Error on the server side.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-write-failure"><strong><code>Memcached::RES_WRITE_FAILURE</code></strong></dt>

   <dd>

    <p class="para">Failed to write network data.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-data-exists"><strong><code>Memcached::RES_DATA_EXISTS</code></strong></dt>

   <dd>

    <p class="para">Failed to do compare-and-swap: item you are trying to store has been
     modified since you last fetched it.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-notstored"><strong><code>Memcached::RES_NOTSTORED</code></strong></dt>

   <dd>

    <p class="para">Item was not stored: but not because of an error. This normally
     means that either the condition for an &quot;add&quot; or a &quot;replace&quot; command
     wasn&#039;t met, or that the item is in a delete queue.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-notfound"><strong><code>Memcached::RES_NOTFOUND</code></strong></dt>

   <dd>

    <p class="para">Item with this key was not found (with &quot;get&quot; operation or &quot;cas&quot;
     operations).</p>
   </dd>

  

  
   <dt id="memcached.constants.res-partial-read"><strong><code>Memcached::RES_PARTIAL_READ</code></strong></dt>

   <dd>

    <p class="para">Partial network data read error.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-some-errors"><strong><code>Memcached::RES_SOME_ERRORS</code></strong></dt>

   <dd>

    <p class="para">Some errors occurred during multi-get.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-no-servers"><strong><code>Memcached::RES_NO_SERVERS</code></strong></dt>

   <dd>

    <p class="para">Server list is empty.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-end"><strong><code>Memcached::RES_END</code></strong></dt>

   <dd>

    <p class="para">End of result set.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-errno"><strong><code>Memcached::RES_ERRNO</code></strong></dt>

   <dd>

    <p class="para">System error.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-buffered"><strong><code>Memcached::RES_BUFFERED</code></strong></dt>

   <dd>

    <p class="para">The operation was buffered.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-timeout"><strong><code>Memcached::RES_TIMEOUT</code></strong></dt>

   <dd>

    <p class="para">The operation timed out.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-bad-key-provided"><strong><code>Memcached::RES_BAD_KEY_PROVIDED</code></strong></dt>

   <dd>

    <p class="para">Bad key.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-connection-socket-create-failure"><strong><code>Memcached::RES_CONNECTION_SOCKET_CREATE_FAILURE</code></strong></dt>

   <dd>

    <p class="para">Failed to create network socket.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-payload-failure"><strong><code>Memcached::RES_PAYLOAD_FAILURE</code></strong></dt>

   <dd>

    <p class="para">Payload failure: could not compress/decompress or serialize/unserialize the value.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-auth-problem"><strong><code>Memcached::RES_AUTH_PROBLEM</code></strong></dt>

   <dd>

    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-auth-failure"><strong><code>Memcached::RES_AUTH_FAILURE</code></strong></dt>

   <dd>

    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-auth-continue"><strong><code>Memcached::RES_AUTH_CONTINUE</code></strong></dt>

   <dd>

    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-e2big"><strong><code>Memcached::RES_E2BIG</code></strong></dt>

   <dd>

    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-key-too-big"><strong><code>Memcached::RES_KEY_TOO_BIG</code></strong></dt>

   <dd>

    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-server-temporarily-disabled"><strong><code>Memcached::RES_SERVER_TEMPORARILY_DISABLED</code></strong></dt>

   <dd>

    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

  
   <dt id="memcached.constants.res-server-memory-allocation-failure"><strong><code>Memcached::RES_SERVER_MEMORY_ALLOCATION_FAILURE</code></strong></dt>

   <dd>

    <p class="para">Available as of Memcached 3.0.0.</p>
   </dd>

  

 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="memcached.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memcached.expiration.html">Expiration Times</a></div>
 <div class="up"><a href="book.memcached.html">Memcached</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>