The Swoole\Redis\Server class

(PECL swoole >= 1.9.0)

Introduction

Class synopsis

classSwoole\Redis\ServerextendsSwoole\Server {
constintNIL = 1;
constintERROR = 0;
constintSTATUS = 2;
constintINT = 3;
constintSTRING = 4;
constintSET = 5;
constintMAP = 6;
publicstaticformat(string$type, string$value = ?): ReturnType
publicsetHandler(
    string$command,
    string$callback,
    string$number_of_string_param = ?,
    string$type_of_array_param = ?
): ReturnType
publicstart(): ReturnType
publicSwoole\Server::addlistener(string$host, int$port, string$socket_type): void
publicSwoole\Server::after(int$after_time_ms, callable$callback, string$param = ?): ReturnType
swoole_timer_clear(int$timer_id): void
publicSwoole\Server::close(int$fd, bool$reset = ?): bool
publicSwoole\Server::connection_info(int$fd, int$reactor_id = ?): array
publicSwoole\Server::connection_list(int$start_fd, int$pagesize = ?): array
publicSwoole\Server\Port::on(string$event_name, callable$callback): ReturnType
publicSwoole\Server::getClientInfo(int$fd, int$reactor_id = ?, bool$ignore_error = ?): array
publicSwoole\Server::getClientList(int$start_fd, int$pagesize = ?): array
publicSwoole\Server::heartbeat(bool$if_close_connection): mixed
publicSwoole\Server::listen(string$host, int$port, string$socket_type): bool
publicSwoole\Server::on(string$event_name, callable$callback): void
publicSwoole\Server::protect(int$fd, bool$is_protected = ?): void
publicSwoole\Server::send(int$fd, string$data, int$reactor_id = ?): bool
publicSwoole\Server::sendfile(int$fd, string$filename, int$offset = ?): bool
publicSwoole\Server::sendMessage(int$worker_id, string$data): bool
publicSwoole\Server::sendto(
    string$ip,
    int$port,
    string$data,
    string$server_socket = ?
): bool
publicSwoole\Server::set(array$settings): ReturnType
publicSwoole\Server::stop(int$worker_id = ?): bool
publicSwoole\Server::task(string$data, int$dst_worker_id = ?, callable$callback = ?): mixed
publicSwoole\Server::taskwait(string$data, float$timeout = ?, int$worker_id = ?): void
publicSwoole\Server::taskWaitMulti(array$tasks, float$timeout_ms = ?): void
publicSwoole\Server::tick(int$interval_ms, callable$callback): void
}

Table of Contents

To Top