GoLang TokyoTyrant::putShl

request it (284)
GoLang replacement for PHP's TokyoTyrant::putShl [edit | history]



Do you know a GoLang replacement for PHP's TokyoTyrant::putShl? Write it!

PHP TokyoTyrant::putShl

PHP original manual for TokyoTyrant::putShl [ show | php.net ]

TokyoTyrant::putShl

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::putShlConcatenates to a record

Description

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

Concatenate to a record and shift to left.

Parameters

key

A string key

value

The value to concatenate

width

The width of the record

Return Values

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

Examples

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");
?>

The above example will output:

data and string

See Also