This commit is contained in:
2020-09-03 15:23:11 +08:00
parent 5a038fb0b6
commit 5b4a1a5cd0
5 changed files with 86 additions and 42 deletions
+12 -1
View File
@@ -4,6 +4,7 @@
namespace Snowflake\Pool;
use Snowflake\Cache\Memcached;
use Snowflake\Snowflake;
/**
@@ -11,12 +12,13 @@ use Snowflake\Snowflake;
* @package Snowflake\Pool
* @property $redis
* @property $db
* @property $memcached
*/
class Pool extends \Snowflake\Abstracts\Pool
{
/**
* @return RedisClient
* @return Redis
*/
public function getRedis()
{
@@ -31,4 +33,13 @@ class Pool extends \Snowflake\Abstracts\Pool
return Snowflake::app()->connections;
}
/**
* @return Memcached
*/
public function getMemcached()
{
return Snowflake::app()->memcached;
}
}