以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。
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.
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.
The default PHP serializer.
The » igbinary serializer. Instead of textual representation it stores PHP data structures in a compact binary form, resulting in space and time gains.
The JSON serializer. Requires PHP 5.2.10+.
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: "".
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
The default (Jenkins one-at-a-time) item key hashing algorithm.
MD5 item key hashing algorithm.
CRC item key hashing algorithm.
FNV1_64 item key hashing algorithm.
FNV1_64A item key hashing algorithm.
FNV1_32 item key hashing algorithm.
FNV1_32A item key hashing algorithm.
Hsieh item key hashing algorithm.
Murmur item key hashing algorithm.
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.
Modulo-based key distribution algorithm.
Consistent hashing key distribution algorithm (based on libketama).
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.
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.
Enable the use of the binary protocol. Please note that you cannot toggle this option on an open connection.
Type: boolean, default: FALSE.
Enables or disables asynchronous I/O. This is the fastest transport available for storage functions.
Type: boolean, default: FALSE.
Enables or disables the no-delay feature for connecting sockets (may be faster in some environments).
Type: boolean, default: FALSE.
The maximum socket send buffer in bytes.
Type: integer, default: varies by platform/kernel configuration.
The maximum socket receive buffer in bytes.
Type: integer, default: varies by platform/kernel configuration.
In non-blocking mode this set the value of the timeout during socket connection, in milliseconds.
Type: integer, default: 1000.
The amount of time, in seconds, to wait until retrying a failed connection attempt.
Type: integer, default: 0.
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.
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.
接続をポーリングする際のタイムアウト時間をミリ秒単位で指定します。
型: integer, デフォルト: 1000.
Enables or disables caching of DNS lookups.
Type: boolean, default: FALSE.
Specifies the failure limit for server connection attempts. The server will be removed after this many continuous connection failures.
Type: integer, default: 0.
Indicates whether igbinary serializer support is available.
Type: boolean.
JSON シリアライザのサポートが有効かどうかを示します。
型: boolean.
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.
実行しようとした操作が成功したことを示します。
実行しようとした操作が何らかの点で失敗したことを示します。
DNSの名前解決が失敗したことを示します。
ネットワーク経由でのデータの読み取りに失敗したことを示します。
memcached プロトコル内で不正なコマンドが実行されたことを示します。
クライアント側でエラーが起きたことを示します。
サーバー側でエラーが起きたことを示します。
ネットワーク経由でのデータの書き込みに失敗したことを示します。
Failed to do compare-and-swap: item you are trying to store has been modified since you last fetched it.
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.
Item with this key was not found (with "get" operation or "cas" operations).
ネットワーク経由でのデータの読み取りが一部失敗したことを示します。
multi-get を実行中にエラーが発生したことを示します。
サーバリストが空であることを示します。
End of result set.
システムエラーを示します。
実行している操作がバッファリングされていることを示します。
実行がタイムアウトしたことを示します。
不正なキーを与えたことを示します。
ネットワークソケットの作成が失敗したことを示します。
ペイロードに関するエラー: つまり、値を シリアライズ/復元 したり、圧縮/解凍 することができなかったことを示します。