(PECL tokyo_tyrant >= 0.1.0)
TokyoTyrant::size — Returns the size of the value
$key
) : intReturns 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
Exemplo #1 TokyoTyrant::size() example
<?php
$tt = new TokyoTyrant("localhost");
$tt->put("test_key", "12345");
echo $tt->size("test_key");
?>
O exemplo acima irá imprimir:
5