downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

TokyoTyrant::restore> <TokyoTyrant::putNr
[edit] Last updated: Fri, 17 May 2013

view this page in

TokyoTyrant::putShl

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::putShlConcatène un enregistrement

Description

public mixed TokyoTyrant::putShl ( string $key , string $value , int $width )

Concatène un enregistrement et se repositionne sur la gauche.

Liste de paramètres

key

Une clé

value

La valeur à concaténer

width

La taille de l'enregistrement

Valeurs de retour

Cette méthode retourne une référence à l'objet courant, et lance une exception TokyoTyrantException si une erreur survient.

Exemples

Exemple #1 Exemple avec TokyoTyrant::putShl()

<?php
/* Connexion à la base de données sur le port par défaut */
$tt = new TokyoTyrant("localhost");

/* Crée une nouvelle clé */
$tt->put("key""just a long piece of data");

/* Concatène et se repositionne sur la gauche */
$tt->putShl("key"" and string"15);

/* Affiche la clé */
echo $tt->get("key");
?>

L'exemple ci-dessus va afficher :

data and string

Voir aussi



add a note add a note User Contributed Notes TokyoTyrant::putShl - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites