• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • TokyoTyrant::tune()

    (PECL tokyo_tyrant >= 0.2.0)

    Tunes connection values

    说明

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

    Tunes database connection options.

    参数

    $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.

    返回值

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