(PECL tokyo_tyrant >= 0.1.0)
TokyoTyrant::putShl — الحاق به رکورد
الحاق رکورد و شیفت به چپ.
کلید رشته
مقدار الحاق
عرض رکورد
بازگرداندن شی فعلی در صورت موفقیت و ایجاد TokyoTyrantException در صورت شکست.
Example #1 مثال TokyoTyrant::putShl()
<?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