(PECL memcached >= 0.1.0)
はじめに
memcached サーバー群への接続を表します。
クラス概要
Memcached {
public __construct
([ string $persistent_id
] )
public addServer
( string $host
, int $port
[, int $weight
= 0
] ) : bool
public addServers
( array $servers
) : bool
public append
( string $key
, string $value
) : bool
public appendByKey
( string $server_key
, string $key
, string $value
) : bool
public casByKey
( float $cas_token
, string $server_key
, string $key
, mixed $value
[, int $expiration
] ) : bool
public decrement
( string $key
[, int $offset
= 1
[, int $initial_value
= 0
[, int $expiry
= 0
]]] ) : int|false
public decrementByKey
( string $server_key
, string $key
[, int $offset
= 1
[, int $initial_value
= 0
[, int $expiry
= 0
]]] ) : int|false
public delete
( string $key
[, int $time
= 0
] ) : bool
public deleteByKey
( string $server_key
, string $key
[, int $time
= 0
] ) : bool
public deleteMulti
( array $keys
[, int $time
= 0
] ) : array
public deleteMultiByKey
( string $server_key
, array $keys
[, int $time
= 0
] ) : bool
public fetch ( ) : array
public fetchAll ( ) : array|false
public flush
([ int $delay
= 0
] ) : bool
public getAllKeys ( ) : array|false
public getDelayed
( array $keys
[, bool $with_cas
[, callable $value_cb
]] ) : bool
public getDelayedByKey
( string $server_key
, array $keys
[, bool $with_cas
[, callable $value_cb
]] ) : bool
public getMultiByKey
( string $server_key
, array $keys
[, int $flags
] ) : array|false
public getResultCode ( ) : int
public getResultMessage ( ) : string
public getServerByKey
( string $server_key
) : array
public getServerList ( ) : array
public getStats ( ) : array|false
public getVersion ( ) : array
public increment
( string $key
[, int $offset
= 1
[, int $initial_value
= 0
[, int $expiry
= 0
]]] ) : int|false
public incrementByKey
( string $server_key
, string $key
[, int $offset
= 1
[, int $initial_value
= 0
[, int $expiry
= 0
]]] ) : int|false
public isPersistent ( ) : bool
public isPristine ( ) : bool
public prepend
( string $key
, string $value
) : bool
public prependByKey
( string $server_key
, string $key
, string $value
) : bool
public quit ( ) : bool
public replaceByKey
( string $server_key
, string $key
, mixed $value
[, int $expiration
] ) : bool
public resetServerList ( ) : bool
public setMulti
( array $items
[, int $expiration
] ) : bool
public setMultiByKey
( string $server_key
, array $items
[, int $expiration
] ) : bool
public setOptions
( array $options
) : bool
public setSaslAuthData
( string $username
, string $password
) : void
public touch
( string $key
, int $expiration
) : bool
public touchByKey
( string $server_key
, string $key
, int $expiration
) : bool
}
目次
- Memcached::add — アイテムを新しいキーで追加する
- Memcached::addByKey — 指定したサーバーにアイテムを新しいキーで追加する
- Memcached::addServer — サーバーをサーバープールに追加する
- Memcached::addServers — 複数のサーバーをサーバープールに追加する
- Memcached::append — データを既存のアイテムに追記する
- Memcached::appendByKey — 指定したサーバーでデータを既存のアイテムに追記する
- Memcached::cas — アイテムを比較して入れ替える
- Memcached::casByKey — 指定したサーバーでアイテムを比較して入れ替える
- Memcached::__construct — Memcached のインスタンスを作成する
- Memcached::decrement — 数値アイテムの値を減らす
- Memcached::decrementByKey — 指定したサーバー上にある数値アイテムの値を減らす
- Memcached::delete — アイテムを削除する
- Memcached::deleteByKey — 指定したサーバーからアイテムを削除する
- Memcached::deleteMulti — 複数のアイテムを削除する
- Memcached::deleteMultiByKey — 指定したサーバーから複数のアイテムを削除する
- Memcached::fetch — 次の結果を取得する
- Memcached::fetchAll — 残りのすべての結果を取得する
- Memcached::flush — キャッシュ内のすべてのアイテムを無効にする
- Memcached::get — アイテムを取得する
- Memcached::getAllKeys — すべてのサーバーのキーを取得する
- Memcached::getByKey — 指定したサーバーからアイテムを取得する
- Memcached::getDelayed — 複数のアイテムを要求する
- Memcached::getDelayedByKey — 指定したサーバーに複数のアイテムを要求する
- Memcached::getMulti — 複数のアイテムを取得する
- Memcached::getMultiByKey — 指定したサーバーから複数のアイテムを取得する
- Memcached::getOption — Memcached のオプションの値を取得する
- Memcached::getResultCode — 直近の操作の結果コードを返す
- Memcached::getResultMessage — 最後に実行した操作の結果を説明したメッセージを返す。
- Memcached::getServerByKey — キーとサーバーを関連付ける
- Memcached::getServerList — プール内のサーバーの一覧を取得する
- Memcached::getStats — サーバープールの統計情報を取得する
- Memcached::getVersion — サーバープールのバージョン情報を取得する
- Memcached::increment — 数値アイテムの値を増やす
- Memcached::incrementByKey — 指定したサーバー上にある数値アイテムの値を増やす
- Memcached::isPersistent — memcache への接続で持続的接続を使っているかどうかを調べる
- Memcached::isPristine — 直近に作られたインスタンスかどうかを調べる
- Memcached::prepend — 既存のアイテムの前にデータを付加する
- Memcached::prependByKey — 指定したサーバーで既存のアイテムの前にデータを付加する
- Memcached::quit — 開いている接続を閉じる
- Memcached::replace — 既存のキーのアイテムを入れ替える
- Memcached::replaceByKey — 指定したサーバーで既存のキーのアイテムを入れ替える
- Memcached::resetServerList — サーバーリストからすべてのサーバーを消去する
- Memcached::set — アイテムを格納する
- Memcached::setByKey — 指定したサーバーにアイテムを格納する
- Memcached::setMulti — 複数のアイテムを格納する
- Memcached::setMultiByKey — 指定したサーバーで複数のアイテムを格納する
- Memcached::setOption — Memcached のオプションの値を設定する
- Memcached::setOptions — Memcached のオプションの値を設定する
- Memcached::setSaslAuthData — 認証用の資格情報を設定する
- Memcached::touch — アイテムに新しい有効期限を設定する
- Memcached::touchByKey — 指定したサーバー上のアイテムに新しい有効期限を設定する