Commit 0e261fba by Carsten Brandt

moved redis out of yii\db namespace

parent 9c3a488d
......@@ -7,7 +7,7 @@
namespace yii\caching;
use yii\db\redis\Connection;
use yii\redis\Connection;
/**
* RedisCache implements a cache application component based on [redis](http://redis.io/).
......@@ -39,7 +39,7 @@ use yii\db\redis\Connection;
* )
* ~~~
*
* @property \yii\db\redis\Connection $connection This property is read-only.
* @property Connection $connection The redis connection object. This property is read-only.
*
* @author Carsten Brandt <mail@cebe.cc>
* @since 2.0
......@@ -71,7 +71,7 @@ class RedisCache extends Cache
*/
public $dataTimeout = null;
/**
* @var \yii\db\redis\Connection the redis connection
* @var Connection the redis connection
*/
private $_connection;
......@@ -88,9 +88,7 @@ class RedisCache extends Cache
/**
* Returns the redis connection object.
* Establishes a connection to the redis server if it does not already exists.
*
* TODO throw exception on error
* @return \yii\db\redis\Connection
* @return Connection the redis connection object.
*/
public function getConnection()
{
......
......@@ -7,11 +7,11 @@
* @license http://www.yiiframework.com/license/
*/
namespace yii\db\redis;
namespace yii\redis;
use \yii\base\Component;
use yii\base\Component;
use yii\base\InvalidConfigException;
use \yii\db\Exception;
use yii\db\Exception;
use yii\helpers\Inflector;
/**
......
......@@ -7,7 +7,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace yii\db\redis;
namespace yii\redis;
use yii\base\InvalidConfigException;
use yii\db\Exception;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment