This commit is contained in:
2020-08-31 01:27:08 +08:00
parent d6d4027b0d
commit e4f01d9499
119 changed files with 12232 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace Snowflake\Pool;
use Snowflake\Snowflake;
/**
* Class Pool
* @package Snowflake\Pool
* @property $redis
* @property $db
*/
class Pool extends \Snowflake\Abstracts\Pool
{
/**
* @return RedisClient
*/
public function getRedis()
{
return Snowflake::get()->redis_connections;
}
/**
* @return Connection
*/
public function getDb()
{
return Snowflake::get()->connections;
}
}