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

search for in the

TokyoTyrant::restore> <TokyoTyrant::putNr
[edit] Last updated: Fri, 07 Jun 2013

view this page in

TokyoTyrant::putShl

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::putShlレコードを連結する

説明

public mixed TokyoTyrant::putShl ( string $key , string $value , int $width )

レコードを連結し、左にシフトします。

パラメータ

key

文字列のキー。

value

連結する値。

width

レコードの幅。

返り値

現在のオブジェクトへの参照を返します。失敗した場合は TokyoTyrantException をスローします。

例1 TokyoTyrant::putShl() example

<?php
/* データベースのデフォルトポートに接続します */
$tt = new TokyoTyrant("localhost");

/* 新しいキーを作成します */
$tt->put("key""just a long piece of data");

/* 連結し、左にシフトします */
$tt->putShl("key"" and string"15);

/* キーを表示します */
echo $tt->get("key");
?>

上の例の出力は以下となります。

data and string

参考



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

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