| TokyoTyrantTable::putKeep(PECL tokyo_tyrant >= 0.1.0) TokyoTyrantTable::putKeep — Put a new record Описание
   public void TokyoTyrantTable::putKeep
    ( string $key
   , array $columns
   ) Puts a new record into the database. If the key already exists this method throws an exception indicating that the records exists. Список параметров
 
 Возвращаемые значенияReturns the primary key and throws TokyoTyrantException on error. Примеры
 Пример #1 TokyoTyrantTable::putKeep() example 
<?phpРезультатом выполнения данного примера будет что-то подобное: 
array(2) {
  ["column1"]=>
  string(9) "some data"
  ["column2"]=>
  string(9) "more data"
}
Existing record! Not modified
array(2) {
  ["column1"]=>
  string(9) "some data"
  ["column2"]=>
  string(9) "more data"
}
 | ||