Files
kiri-core/system/Pool/Pool.php
T
2020-08-31 01:27:08 +08:00

35 lines
418 B
PHP

<?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;
}
}