(PECL memcached >= 2.0.0)
Memcached::decrementByKey — Decrement numeric item's value, stored on a specific server
$server_key
, string $key
[, int $offset = 1
[, int $initial_value = 0
[, int $expiry = 0
]]] )
Memcached::decrementByKey() decrements a numeric item's
value by the specified offset. If the item's value
is not numeric, an error will result. If the operation
would decrease the value below 0, the new value will be 0.
Memcached::decrementByKey() will set the item to the
initial_value parameter if the key doesn't exist.
server_key값을 저장하거나 가져올 서버를 인식하는 키. 아이템에 대한 실제 키를 해싱하는 대신에, 대화할 memcached 서버가 정해질 때 서버 키를 해시합니다. 이로써 하나의 서버에 대한 관련된 아이템들을 묶을 수 있게 되고, 여러 명령을 효율적으로 처리하게 됩니다.
keyThe key of the item to decrement.
offsetThe amount by which to decrement the item's value.
initial_valueThe value to set the item to if it doesn't currently exist.
expiryThe expiry time to set on the item.
Returns item's new value on success실패 시 FALSE를 반환합니다.