Browse Source

moved redis out of yii\db namespace

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
0e261fba5a
  1. 10
      framework/yii/caching/RedisCache.php
  2. 6
      framework/yii/redis/Connection.php
  3. 2
      framework/yii/redis/Transaction.php

10
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 <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()
{

6
framework/yii/db/redis/Connection.php → 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;
/**

2
framework/yii/db/redis/Transaction.php → 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;
Loading…
Cancel
Save