PHP Doku:: Returns the size of the value - tokyotyrant.size.html

Verlauf / Chronik / History: (2) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische Datenbankerweiterungentokyo_tyrantThe TokyoTyrant classTokyoTyrant::size

Ein Service von Reinhard Neidl - Webprogrammierung.

The TokyoTyrant class

<<TokyoTyrant::setMaster

TokyoTyrant::stat>>

TokyoTyrant::size

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::sizeReturns the size of the value

Beschreibung

public int TokyoTyrant::size ( string $key )

Returns the size of a value by key

Parameter-Liste

key

The key of which size to fetch

Rückgabewerte

Returns the size of the key or throw TokyoTyrantException on error

Beispiele

Beispiel #1 TokyoTyrant::size() example

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

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

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

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

5


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)