|
PHP5中文手册
Memcache::replace(PECL memcache:0.2-2.1.2) Memcache::replace — Replace value of the existing item 说明
bool Memcache::replace
( string $key
, mixed $var
[, int $flag
[, int $expire
]] )
Memcache::replace() should be used to replace value of existing item with key . In case if item with such key doesn't exists, Memcache::replace() returns FALSE. For the rest Memcache::replace() behaves similarly to Memcache::set(). Also you can use memcache_replace() function. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例
Example#1 Memcache::replace() example
<?php 参见
|