downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Memcached::setOption> <Memcached::setMulti
[edit] Last updated: Wed, 19 Jun 2013

view this page in

Memcached::setMultiByKey

(PECL memcached >= 0.1.0)

Memcached::setMultiByKeyStore multiple items on a specific server

Descrição

public bool Memcached::setMultiByKey ( string $server_key , array $items [, int $expiration ] )

Memcached::setMultiByKey() is functionally equivalent to Memcached::setMulti(), except that the free-form server_key can be used to map the keys from items to a specific server. This is useful if you need to keep a bunch of related keys on a certain server.

Parâmetros

server_key

A chave identificando o servidor aonde guardar o valor.

items

Um array de pares chave/valor para guardar no servidor.

expiration

O tempo de expiração, padrão é 0. Veja Tempos de Expiração para maiores informações.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha. Use Memcached::getResultCode() se necessário.

Veja Também



add a note add a note User Contributed Notes Memcached::setMultiByKey - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites