Memcache::getVersion

(PECL memcache >= 0.2.0)

Memcache::getVersion锟斤拷锟截凤拷锟斤拷锟斤拷锟芥本锟斤拷息

说锟斤拷

Memcache::getVersion ( void ) : string

Memcache::getVersion()锟斤拷锟斤拷一锟斤拷锟街凤拷锟斤拷锟斤拷示锟侥凤拷锟斤拷税姹撅拷拧锟� 同锟斤拷锟斤拷也锟斤拷锟斤拷使锟矫猴拷锟斤拷memcache_get_version()锟斤拷

锟斤拷锟斤拷值

锟斤拷锟截凤拷锟斤拷税姹撅拷锟� 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE

锟斤拷锟斤拷

Example #1 Memcache::getVersion() 示锟斤拷

<?php

/* OO API */
$memcache = new Memcache;
$memcache->connect('memcache_host'11211);
echo 
$memcache->getVersion();

/* procedural API */
$memcache memcache_connect('memcache_host'11211);
echo 
memcache_get_version($memcache);

?>

锟轿硷拷

  • Memcache::getExtendedStats() - 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷蟹锟斤拷锟斤拷锟酵筹拷锟斤拷锟较�
  • Memcache::getStats() - 锟斤拷取锟斤拷锟斤拷锟斤拷统锟斤拷锟斤拷息