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

search for in the

Memcached::replace> <Memcached::prepend
[edit] Last updated: Fri, 10 Feb 2012

view this page in

Memcached::prependByKey

(PECL memcached >= 0.1.0)

Memcached::prependByKey指定したサーバで既存のアイテムの前にデータを付加する

説明

public bool Memcached::prependByKey ( string $server_key , string $key , string $value )

Memcached::prependByKey() は機能的に Memcached::prepend() と同等です。しかし、自由形式の server_key を使用して、 key を特定のサーバに関連付けることができます。

パラメータ

server_key

値を格納するサーバを表すキー。

key

データを先頭に付加したいアイテムのキー。

value

先頭に付加する文字列。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。 Memcached::getResultCode() は、キーが存在しない場合に Memcached::RES_NOTSTORED を返します。

参考



add a note add a note User Contributed Notes Memcached::prependByKey
There are no user contributed notes for this page.

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