(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
close ( ) : bool
connect
( string $host
[, int $port
[, int $timeout
]] ) : bool
decrement
( string $key
[, int $value
= 1
] ) : int|false
delete
( string $key
[, int $timeout
= 0
] ) : bool
flush ( ) : bool
get
( string $key
[, int &$flags
] ) : string
getExtendedStats
([ string $type
[, int $slabid
[, int $limit
= 100
]]] ) : array
getServerStatus
( string $host
[, int $port
= 11211
] ) : int
getStats
([ string $type
[, int $slabid
[, int $limit
= 100
]]] ) : array|false
getVersion ( ) : string|false
increment
( string $key
[, int $value
= 1
] ) : int|false
setCompressThreshold
( int $threshold
[, float $min_savings
] ) : 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 — サーバーのパラメータおよび状態を、実行時に変更する