|
PHP5中文手册
Memcache::get(PECL memcache:0.2-2.1.2) Memcache::get — Retrieve item from the server 说明
string Memcache::get
( string $key
[, int &$flags
] )
array Memcache::get
( array $keys
[, array &$flags
] )
Memcache::get() returns previously stored data if an item with such key exists on the server at this moment. You can pass array of keys to Memcache::get() to get array of values. The result array will contain only found key-value pairs. 参数
返回值Returns the string associated with the key or FALSE on failure or if such key was not found. 范例
Example#1 Memcache::get() example
<?php |