Memcached::replaceByKey

Replace the item under an existing key on a specific server

&reftitle.description; public `bool` `Memcached::replaceByKey` `string` `server_key` `string` `key` `mixed` `value` `int` `expiration` 0

`Memcached::replaceByKey` is functionally equivalent to `Memcached::replace`, except that the free-form `server_key` can be used to map the `key` to a specific server. This is useful if you need to keep a bunch of related keys on a certain server.

&reftitle.parameters;

`server_key`

- &memcached.parameter.server_key;

`key`

- &memcached.parameter.key;

`value`

- &memcached.parameter.value;

`expiration`

- &memcached.parameter.expiration;

&reftitle.returnvalues;

&return.success; The `Memcached::getResultCode` will return `Memcached::RES_NOTSTORED` if the key does not exist.

&reftitle.seealso;

- `Memcached::replace`
- `Memcached::set`
- `Memcached::add`