modify
This commit is contained in:
+15
-2
@@ -17,9 +17,7 @@ use JetBrains\PhpStorm\Pure;
|
||||
use Snowflake\Abstracts\Config;
|
||||
use Snowflake\Application;
|
||||
use Snowflake\Error\Logger;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
use Snowflake\Exception\ConfigException;
|
||||
use Snowflake\Exception\NotFindClassException;
|
||||
use Snowflake\Snowflake;
|
||||
use HttpServer\Http\Context;
|
||||
use Snowflake\Core\ArrayAccess;
|
||||
@@ -309,6 +307,21 @@ if (!function_exists('write')) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('redis')) {
|
||||
|
||||
|
||||
/**
|
||||
* @param string $messages
|
||||
* @param string $category
|
||||
* @throws Exception
|
||||
*/
|
||||
function redis(): \Snowflake\Cache\Redis|Redis
|
||||
{
|
||||
return Snowflake::app()->getRedis();
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('fire')) {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user