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::getVersionGet server pool version info

Description

public array Memcached::getVersion ( void )

Memcached::getVersion() returns an array containing the version info for all available memcache servers.

Parameters

This function has no parameters.

Return Values

Array of server versions, one entry per server.

Examples

Example #1 Memcached::getVersion() example

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

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

The above example will output something similar to:

Array
(
    [localhost:11211] => 1.2.6
)



add a note add a note User Contributed Notes Memcached::getVersion
Nap 23-Jul-2011 04: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