GoLang TokyoTyrantTable::add

request it (96)
GoLang replacement for PHP's TokyoTyrantTable::add [edit | history]



Do you know a GoLang replacement for PHP's TokyoTyrantTable::add? Write it!

PHP TokyoTyrantTable::add

PHP original manual for TokyoTyrantTable::add [ show | php.net ]

TokyoTyrantTable::add

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantTable::addAdds a record

Description

public void TokyoTyrantTable::add ( string $key , mixed $increment [, string $type ] )

This method is not supported with table databases.

Parameters

key

The string key

increment

The amount to increment

type

TokyoTyrant::RDB_RECINT or TokyoTyrant::RDB_RECDBL constant. If this parameter is omitted the type is guessed from the increment parameters type.

Return Values

This method throws an TokyoTyrantException if used through this class.

See Also