TokyoTyrantTable::put

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantTable::put — Store a row

Description

publicintTokyoTyrantTable::put
( string$key
, array$columns
)

Puts a new row into the database. This method parameters are key which is
the primary key of the row, passing NULL will generate a new unique id. value
is an array containing the row contents which is usually key value pairs.

Parameters

key

The primary key of the row

columns

The row contents

Return Values

Returns the primary key on success and throws TokyoTyrantException on error