e
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user