Swoole
PHP Manual

The Swoole\Redis\Server class

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

简介

类摘要

Swoole\Redis\Server extends Swoole\Server {
/* Constants */
const integer NIL = 1 ;
const integer ERROR = 0 ;
const integer STATUS = 2 ;
const integer INT = 3 ;
const integer STRING = 4 ;
const integer SET = 5 ;
const integer MAP = 6 ;
/* 方法 */
public static ReturnType format ( string $type [, string $value ] )
public ReturnType setHandler ( string $command , string $callback [, string $number_of_string_param [, string $type_of_array_param ]] )
public ReturnType start ( void )
/* 继承的方法 */
public void Swoole\Server::addlistener ( string $host , integer $port , string $socket_type )
public boolean Swoole\Server::addProcess ( swoole_process $process )
public ReturnType Swoole\Server::after ( integer $after_time_ms , callable $callback [, string $param ] )
public boolean Swoole\Server::bind ( integer $fd , integer $uid )
public void Swoole\Server::clearTimer ( integer $timer_id )
void swoole_timer_clear ( integer $timer_id )
public boolean Swoole\Server::close ( integer $fd [, boolean $reset ] )
public boolean Swoole\Server::confirm ( integer $fd )
public array Swoole\Server::connection_info ( integer $fd [, integer $reactor_id ] )
public array Swoole\Server::connection_list ( integer $start_fd [, integer $pagesize ] )
public void Swoole\Server::defer ( callable $callback )
public void Swoole\Server\Port::__destruct ( void )
public ReturnType Swoole\Server\Port::on ( string $event_name , callable $callback )
public void Swoole\Server\Port::set ( array $settings )
public boolean Swoole\Server::exist ( integer $fd )
public void Swoole\Server::finish ( string $data )
public ReturnType Swoole\Server::getClientInfo ( integer $fd [, integer $reactor_id ] )
public array Swoole\Server::getClientList ( integer $start_fd [, integer $pagesize ] )
public integer Swoole\Server::getLastError ( void )
public mixed Swoole\Server::heartbeat ( boolean $if_close_connection )
public boolean Swoole\Server::listen ( string $host , integer $port , string $socket_type )
public void Swoole\Server::on ( string $event_name , callable $callback )
public void Swoole\Server::pause ( integer $fd )
public void Swoole\Server::protect ( integer $fd [, boolean $is_protected ] )
public boolean Swoole\Server::reload ( void )
public void Swoole\Server::resume ( integer $fd )
public boolean Swoole\Server::send ( integer $fd , string $data [, integer $reactor_id ] )
public boolean Swoole\Server::sendfile ( integer $fd , string $filename [, integer $offset ] )
public boolean Swoole\Server::sendMessage ( integer $worker_id , string $data )
public boolean Swoole\Server::sendto ( string $ip , integer $port , string $data [, string $server_socket ] )
public boolean Swoole\Server::sendwait ( integer $fd , string $data )
public ReturnType Swoole\Server::set ( array $settings )
public void Swoole\Server::shutdown ( void )
public void Swoole\Server::start ( void )
public array Swoole\Server::stats ( void )
public boolean Swoole\Server::stop ([ integer $worker_id ] )
public mixed Swoole\Server::task ( string $data [, integer $dst_worker_id [, callable $callback ]] )
public void Swoole\Server::taskwait ( string $data [, float $timeout [, integer $worker_id ]] )
public void Swoole\Server::taskWaitMulti ( array $tasks [, double $timeout_ms ] )
public void Swoole\Server::tick ( integer $interval_ms , callable $callback )
}

预定义常量

Swoole\Redis\Server::NIL

Swoole\Redis\Server::ERROR

Swoole\Redis\Server::STATUS

Swoole\Redis\Server::INT

Swoole\Redis\Server::STRING

Swoole\Redis\Server::SET

Swoole\Redis\Server::MAP

Table of Contents


Swoole
PHP Manual