diff --git a/framework/yii/caching/RedisCache.php b/framework/yii/caching/RedisCache.php index 09ce599..5c778fc 100644 --- a/framework/yii/caching/RedisCache.php +++ b/framework/yii/caching/RedisCache.php @@ -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 * @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() { diff --git a/framework/yii/db/redis/Connection.php b/framework/yii/redis/Connection.php similarity index 99% rename from framework/yii/db/redis/Connection.php rename to framework/yii/redis/Connection.php index 68b40d3..848b408 100644 --- a/framework/yii/db/redis/Connection.php +++ b/framework/yii/redis/Connection.php @@ -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; /** diff --git a/framework/yii/db/redis/Transaction.php b/framework/yii/redis/Transaction.php similarity index 99% rename from framework/yii/db/redis/Transaction.php rename to framework/yii/redis/Transaction.php index 024f821..94cff7a 100644 --- a/framework/yii/db/redis/Transaction.php +++ b/framework/yii/redis/Transaction.php @@ -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;