The Swoole\Redis\Server class

Introduction

Class synopsis

Swoole\Redis\Server
class Swoole\Redis\Server extends Swoole\Server {
/* Constants */
const int Swoole\Redis\Server::NIL = 1;
const int Swoole\Redis\Server::ERROR = 0;
const int Swoole\Redis\Server::STATUS = 2;
const int Swoole\Redis\Server::INT = 3;
const int Swoole\Redis\Server::STRING = 4;
const int Swoole\Redis\Server::SET = 5;
const int Swoole\Redis\Server::MAP = 6;
/* Methods */
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()
/* Inherited methods */
public void Swoole\Server::addlistener(string $host, int $port, string $socket_type)
public bool Swoole\Server::addProcess(swoole_process $process)
public ReturnType Swoole\Server::after(int $after_time_ms, callable $callback, string $param = ?)
public bool Swoole\Server::bind(int $fd, int $uid)
public void Swoole\Server::clearTimer(int $timer_id)
void swoole_timer_clear(int $timer_id)
public bool Swoole\Server::close(int $fd, bool $reset = ?)
public bool Swoole\Server::confirm(int $fd)
public array Swoole\Server::connection_info(int $fd, int $reactor_id = ?)
public array Swoole\Server::connection_list(int $start_fd, int $pagesize = ?)
public void Swoole\Server::defer(callable $callback)
public void Swoole\Server\Port::__destruct()
public ReturnType Swoole\Server\Port::on(string $event_name, callable $callback)
public void Swoole\Server\Port::set(array $settings)
public bool Swoole\Server::exist(int $fd)
public void Swoole\Server::finish(string $data)
public array Swoole\Server::getClientInfo(int $fd, int $reactor_id = ?, bool $ignore_error = ?)
public array Swoole\Server::getClientList(int $start_fd, int $pagesize = ?)
public int Swoole\Server::getLastError()
public mixed Swoole\Server::heartbeat(bool $if_close_connection)
public bool Swoole\Server::listen(string $host, int $port, string $socket_type)
public void Swoole\Server::on(string $event_name, callable $callback)
public void Swoole\Server::pause(int $fd)
public void Swoole\Server::protect(int $fd, bool $is_protected = ?)
public bool Swoole\Server::reload()
public void Swoole\Server::resume(int $fd)
public bool Swoole\Server::send(int $fd, string $data, int $reactor_id = ?)
public bool Swoole\Server::sendfile(int $fd, string $filename, int $offset = ?)
public bool Swoole\Server::sendMessage(int $worker_id, string $data)
public bool Swoole\Server::sendto(
    string $ip,
    int $port,
    string $data,
    string $server_socket = ?
)
public bool Swoole\Server::sendwait(int $fd, string $data)
public ReturnType Swoole\Server::set(array $settings)
public void Swoole\Server::shutdown()
public void Swoole\Server::start()
public array Swoole\Server::stats()
public bool Swoole\Server::stop(int $worker_id = ?)
public mixed Swoole\Server::task(string $data, int $dst_worker_id = ?, callable $callback = ?)
public void Swoole\Server::taskwait(string $data, float $timeout = ?, int $worker_id = ?)
public void Swoole\Server::taskWaitMulti(array $tasks, float $timeout_ms = ?)
public void Swoole\Server::tick(int $interval_ms, callable $callback)
}

Predefined Constants

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