初始化代码

This commit is contained in:
2025-12-22 14:34:25 +08:00
parent c2c5ae2fdd
commit a77dbc743f
1510 changed files with 213008 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
<?php
namespace Swoole;
class Redis
{
const STATE_CONNECT = 0;
const STATE_READY = 1;
const STATE_WAIT_RESULT = 2;
const STATE_SUBSCRIBE = 3;
const STATE_CLOSED = 4;
public $onConnect = null;
public $onClose = null;
public $onMessage = null;
public $setting = null;
public $host = null;
public $port = null;
public $sock = null;
public $errCode = null;
public $errMsg = null;
public function __construct(?array $setting = null)
{
}
public function __destruct()
{
}
/**
* @return mixed
*/
public function on($event_name, $callback)
{
}
/**
* @return mixed
*/
public function connect($host, $port, $callback)
{
}
/**
* @return mixed
*/
public function close()
{
}
/**
* @return mixed
*/
public function getState()
{
}
/**
* @return mixed
*/
public function __call($command, $params)
{
}
}