TokyoTyrant::size

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::sizeReturns the size of the value

Açıklama

public TokyoTyrant::size ( string $key ) : int

Returns the size of a value by key

Değiştirgeler

key

The key of which size to fetch

Dönen Değerler

Returns the size of the key or throw TokyoTyrantException on error

Örnekler

Örnek 1 TokyoTyrant::size() example

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

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

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

Yukarıdaki örneğin çıktısı:

5