update : 2015.11.03
php.shukuma.com

검색:
 
 
Returns the size of the value

TokyoTyrant::size

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::sizeReturns the size of the value

설명

public int TokyoTyrant::size ( string $key )

Returns the size of a value by key

인수

key

The key of which size to fetch

반환값

Returns the size of the key or throw TokyoTyrantException on error

예제

Example #1 TokyoTyrant::size() example

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

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

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

위 예제의 출력:

5