Memcache クラス
(PECL memcache >= 0.2.0)
はじめに
memcache サーバーへの接続をあらわします。
クラス概要
Memcache
{
addServer
( string
$host
[, int $port = 11211
[, bool $persistent
[, int $weight
[, int $timeout
[, int $retry_interval
[, bool $status
[, callable $failure_callback
[, int $timeoutms
]]]]]]]] ) : bool
setServerParams
( string
}$host
[, int $port = 11211
[, int $timeout
[, int $retry_interval = FALSE
[, bool $status
[, callable $failure_callback
]]]]] ) : bool目次
- Memcache::add — サーバーに項目を追加する
- Memcache::addServer — コネクションプールに memcached サーバーを追加する
- Memcache::close — memcached サーバーとの接続を閉じる
- Memcache::connect — memcached サーバーへの接続をオープンする
- Memcache::decrement — 項目の値を減らす
- Memcache::delete — サーバーから項目を削除する
- Memcache::flush — サーバー上のすべての既存項目を消去する
- Memcache::get — サーバーから項目を取得する
- Memcache::getExtendedStats — プール内のすべてのサーバーの統計情報を取得する
- Memcache::getServerStatus — サーバーの状態を返す
- Memcache::getStats — サーバーの統計情報を取得する
- Memcache::getVersion — サーバーのバージョンを返す
- Memcache::increment — 項目の値を増やす
- Memcache::pconnect — memcached サーバーへの持続的な接続をオープンする
- Memcache::replace — 既存項目の値を置換する
- Memcache::set — データをサーバーに格納する
- Memcache::setCompressThreshold — 大きな値に対する自動圧縮処理を有効にする
- Memcache::setServerParams — サーバーのパラメータおよび状態を、実行時に変更する