Memcache::decrement
Opis
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.
Notatka: New item's value will not be less than zero.
Notatka: Do not use Memcache::decrement() with item, which was stored compressed, because consequent call to Memcache::get() will fail.
Parametry
keyKey of the item do decrement.
valueDecrement the item by
value. Optional and defaults to 1.
Przykłady
| Poprzedni | Spis treści | Następny |
| memcache_debug | Początek rozdziału |