2024 日本 PHP 研討會

Swoole\Redis\Server 類別

(PECL swoole >= 1.9.0)

簡介

類別概要

class Swoole\Redis\Server extends Swoole\Server {
/* 常數 */
const int NIL = 1;
const int ERROR = 0;
常數 STATUS = 2
常數 INT = 3
常數 STRING = 4
常數 SET = 5
常數 MAP = 6
/* 方法 */
公開靜態方法 format(字串 $type, 字串 $value = ?): 回傳值類型
public setHandler(
    字串 $command,
    字串 $callback,
    字串 $number_of_string_param = ?,
    字串 $type_of_array_param = ?
): 回傳值類型
公開方法 start(): 回傳值類型
/* 繼承方法 */
公開方法 Swoole\Server::addlistener(字串 $host, 整數 $port, 字串 $socket_type):
公開方法 Swoole\Server::addProcess(swoole_process $process): 布林值
公開方法 Swoole\Server::after(整數 $after_time_ms, 可呼叫的 $callback, 字串 $param = ?): 回傳值類型
公開方法 Swoole\Server::bind(整數 $fd, 整數 $uid): 布林值
swoole_timer_clear(int $timer_id): void
公開 Swoole\Server::close(int $fd, bool $reset = ?): bool
公開 Swoole\Server::connection_info(int $fd, int $reactor_id = ?): array
公開 Swoole\Server::connection_list(int $start_fd, int $pagesize = ?): array
公開 Swoole\Server\Port::on(string $event_name, callable $callback): ReturnType
公開 Swoole\Server::getClientInfo(int $fd, int $reactor_id = ?, bool $ignore_error = ?): 陣列
公開 Swoole\Server::getClientList(int $start_fd, int $pagesize = ?): 陣列
公開 Swoole\Server::heartbeat(bool $if_close_connection): 混合
公開 Swoole\Server::listen(字串 $host, int $port, 字串 $socket_type): 布林值
公開 Swoole\Server::on(字串 $event_name, 可呼叫 $callback):
公開 Swoole\Server::protect(int $fd, bool $is_protected = ?):
公開 Swoole\Server::send(int $fd, 字串 $data, int $reactor_id = ?): 布林值
公開 Swoole\Server::sendfile(int $fd, string $filename, int $offset = ?): bool
公開 Swoole\Server::sendMessage(int $worker_id, string $data): bool
公開 Swoole\Server::sendto(
    string $ip,
    int $port,
    string $data,
    string $server_socket = ?
): bool
公開 Swoole\Server::set(array $settings): 回傳值類型
公開 Swoole\Server::stop(int $worker_id = ?): bool
公開 Swoole\Server::task(string $data, int $dst_worker_id = ?, callable $callback = ?): mixed
公開 Swoole\Server::taskwait(字串 $data, 浮點數 $timeout = ?, 整數 $worker_id = ?):
公開 Swoole\Server::taskWaitMulti(陣列 $tasks, 浮點數 $timeout_ms = ?):
公開 Swoole\Server::tick(整數 $interval_ms, 可呼叫 $callback):
}

目錄

新增註記

使用者貢獻的註記

此頁面沒有使用者貢獻的註記。
To Top