PHP Manual

  • English French German Portuguese Spanish
  1. Function Reference
  2. Database Extensions
  3. Vendor Specific Database Extensions
  4. tokyo_tyrant
  5. Examples
tokyo_tyrant Introduction Installing/Configuring Predefined Constants Examples TokyoTyrant TokyoTyrantTable TokyoTyrantQuery TokyoTyrantIterator TokyoTyrantException
  • Predefined Constants
  • TokyoTyrant

Examples

Basic usage

Example #1 Putting and getting a key-value pair

<?php
$tt 
= new TokyoTyrant("localhost");
$tt->put("key", "value");
echo 
$tt->get("key");
?>

The above example will output:

value
© Copyright © 2001-2015 The PHP Group.

© Copyright 2014. Diseñado por PHP Manual usando jfCMS.