(PECL memcached >= 0.1.0)
Memcached::prependByKey — Prepend data to an existing item on a specific server
$server_key
, string $key
, string $value
) : bool
Memcached::prependByKey() is functionally equivalent to
Memcached::prepend(), except that the free-form
server_key can be used to map the
key to a specific server.
server_keyCheia ce identifică serverul pe care se înscrie, sau de pe care se citește valoarea. În loc de a efectua hash asupra cheii nemijlocite a elementului, se efectuaează hash asupra cheii serverului, atunci când se decide cu care server memcached să se comunice. Aceasta permite ca elementele asociate să fie grupate împreună pe un singur server pentru a mări eficiența operațiilor multiple.
keyThe key of the item to prepend the data to.
valueThe string to prepend.
Întoarce valoarea TRUE în cazul
succesului sau FALSE în cazul eșecului.
The Memcached::getResultCode() will return
Memcached::RES_NOTSTORED if the key does not exist.