TokyoTyrant
PHP Manual

TokyoTyrant::putShl

(PECL tokyo_tyrant >= Unknown)

TokyoTyrant::putShlConcatenates to a record

Описание

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

Concatenate to a record and shift to left.

Параметри

key

A string key

value

The value to concatenate

width

The width of the record

Връщани стойности

This method returns a reference to the current object and throws TokyoTyrantException on failure.

Примери

Example #1 TokyoTyrant::putShl example

<?php
/* Connect to a database on default port */
$tt = new TokyoTyrant("localhost");

/* Create a new key */
$tt->put("key""just a long piece of data");

/* Concatenate and shift to left */
$tt->putShl("key"" and string"15);

/* Echo the key */
echo $tt->get("key");
?>

Примерът по-горе ще изведе:

data and string

Вж. също


TokyoTyrant
PHP Manual