|
PHP5中文手册
Memcache::add(PECL memcache:0.2-2.1.2) Memcache::add — Add an item to the server 说明
bool Memcache::add
( string $key
, mixed $var
[, int $flag
[, int $expire
]] )
Memcache::add() stores variable var with key only if such key doesn't exist at the server yet. Also you can use memcache_add() function. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 Returns FALSE if such key already exist. For the rest Memcache::add() behaves similarly to Memcache::set(). 范例
Example#1 Memcache::add() example
<?php 参见
|