GoLang TokyoTyrant::tune

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



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

PHP TokyoTyrant::tune

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

TokyoTyrant::tune

(PECL tokyo_tyrant >= 0.2.0)

TokyoTyrant::tuneTunes connection values

Description

public TokyoTyrant TokyoTyrant::tune ( float $timeout [, int $options = TokyoTyrant::RDBT_RECON ] )

Tunes database connection options.

Parameters

timeout

The objects timeout value (default: 5.0)

options

Bitmask of options to tune. This can be either 0 or TokyoTyrant::RDBT_RECON. It is recommended not to change the second parameter.

Return Values

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