downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Memcached::increment> <Memcached::getStats
[edit] Last updated: Fri, 10 Feb 2012

view this page in

Memcached::getVersion

(PECL memcached >= 0.1.5)

Memcached::getVersionサーバープールのバージョン情報を取得する

説明

public array Memcached::getVersion ( void )

Memcached::getVersion() は、全ての利用可能な memcached サーバのバージョン情報を含んだ配列を返します。

パラメータ

この関数にはパラメータはありません。

返り値

memcached サーバのバージョン情報の配列。サーバひとつにつき配列の要素一つが割り当てられます。

例1 Memcached::getVersion() の例

<?php
$m 
= new Memcached();
$m->addServer('localhost'11211);

print_r($m->getVersion());
?>

上の例の出力は、 たとえば以下のようになります。

Array
(
    [localhost:11211] => 1.2.6
)



add a note add a note User Contributed Notes Memcached::getVersion
Nap 23-Jul-2011 01:15
You can use this function to check if any connections is available. It returns false if all memcached servers are down.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites