|
PHP5中文手册
Memcache::decrement(PECL memcache:0.2-2.1.2) Memcache::decrement — Decrement item's value 说明
int Memcache::decrement
( string $key
[, int $value
] )
Memcache::decrement() decrements value of the item by value . Similarly to Memcache::increment(), current value of the item is being converted to numerical and after that value is substracted.
Memcache::decrement() does not create an item if it didn't exist. Also you can use memcache_decrement() function. 参数
返回值Returns item's new value on success or FALSE on failure. 范例
Example#1 Memcache::decrement() example
<?php 参见
|