GoLang Memcached::getVersion

request it (65)
GoLang replacement for PHP's Memcached::getVersion [edit | history]



Do you know a GoLang replacement for PHP's Memcached::getVersion? Write it!

PHP Memcached::getVersion

PHP original manual for Memcached::getVersion [ show | php.net ]

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
)