Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
0e261fba
Commit
0e261fba
authored
Sep 18, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved redis out of yii\db namespace
parent
9c3a488d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
RedisCache.php
framework/yii/caching/RedisCache.php
+4
-6
Connection.php
framework/yii/redis/Connection.php
+3
-3
Transaction.php
framework/yii/redis/Transaction.php
+1
-1
No files found.
framework/yii/caching/RedisCache.php
View file @
0e261fba
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
namespace
yii\caching
;
namespace
yii\caching
;
use
yii\
db\
redis\Connection
;
use
yii\redis\Connection
;
/**
/**
* RedisCache implements a cache application component based on [redis](http://redis.io/).
* RedisCache implements a cache application component based on [redis](http://redis.io/).
...
@@ -39,7 +39,7 @@ use yii\db\redis\Connection;
...
@@ -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>
* @author Carsten Brandt <mail@cebe.cc>
* @since 2.0
* @since 2.0
...
@@ -71,7 +71,7 @@ class RedisCache extends Cache
...
@@ -71,7 +71,7 @@ class RedisCache extends Cache
*/
*/
public
$dataTimeout
=
null
;
public
$dataTimeout
=
null
;
/**
/**
* @var
\yii\db\redis\
Connection the redis connection
* @var Connection the redis connection
*/
*/
private
$_connection
;
private
$_connection
;
...
@@ -88,9 +88,7 @@ class RedisCache extends Cache
...
@@ -88,9 +88,7 @@ class RedisCache extends Cache
/**
/**
* Returns the redis connection object.
* Returns the redis connection object.
* Establishes a connection to the redis server if it does not already exists.
* Establishes a connection to the redis server if it does not already exists.
*
* @return Connection the redis connection object.
* TODO throw exception on error
* @return \yii\db\redis\Connection
*/
*/
public
function
getConnection
()
public
function
getConnection
()
{
{
...
...
framework/yii/
db/
redis/Connection.php
→
framework/yii/redis/Connection.php
View file @
0e261fba
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
* @license http://www.yiiframework.com/license/
* @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\base\InvalidConfigException
;
use
\
yii\db\Exception
;
use
yii\db\Exception
;
use
yii\helpers\Inflector
;
use
yii\helpers\Inflector
;
/**
/**
...
...
framework/yii/
db/
redis/Transaction.php
→
framework/yii/redis/Transaction.php
View file @
0e261fba
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* @license http://www.yiiframework.com/license/
* @license http://www.yiiframework.com/license/
*/
*/
namespace
yii\
db\
redis
;
namespace
yii\redis
;
use
yii\base\InvalidConfigException
;
use
yii\base\InvalidConfigException
;
use
yii\db\Exception
;
use
yii\db\Exception
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment