TokyoTyrant::size

(PECL tokyo_tyrant >= 0.1.0)
Returns the size of the value
public int TokyoTyrant::size ( string $key )

Returns the size of a value by key

Parameters:
key

The key of which size to fetch

Returns:

Returns the size of the key or throw TokyoTyrantException on error

Examples:
TokyoTyrant::size() example
<?php
$tt = new TokyoTyrant("localhost");

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

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

The above example will output:

5
doc_php
2016-02-24 16:18:50
Comments
Leave a Comment

Please login to continue.