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

search for in the

TokyoTyrant::stat> <TokyoTyrant::setMaster
[edit] Last updated: Fri, 24 May 2013

view this page in

TokyoTyrant::size

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::size値のサイズを返す

説明

public int TokyoTyrant::size ( string $key )

指定したキーに対応する値のサイズを返します。

パラメータ

key

サイズを調べたいキー。

返り値

値のサイズを返します。エラー時には TokyoTyrantException をスローします。

例1 TokyoTyrant::size() の例

<?php
$tt 
= new TokyoTyrant("localhost");

$tt->put("test_key""12345");

echo 
$tt->size("test_key");
?>

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

5



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

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