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
9c2eb4df
Commit
9c2eb4df
authored
May 11, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc fix in caching classes
parent
6a752950
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
12 deletions
+11
-12
ApcCache.php
yii/caching/ApcCache.php
+1
-1
Cache.php
yii/caching/Cache.php
+1
-1
DbCache.php
yii/caching/DbCache.php
+1
-1
DummyCache.php
yii/caching/DummyCache.php
+1
-1
FileCache.php
yii/caching/FileCache.php
+1
-1
MemCache.php
yii/caching/MemCache.php
+3
-4
WinCache.php
yii/caching/WinCache.php
+1
-1
XCache.php
yii/caching/XCache.php
+1
-1
ZendDataCache.php
yii/caching/ZendDataCache.php
+1
-1
No files found.
yii/caching/ApcCache.php
View file @
9c2eb4df
...
...
@@ -24,7 +24,7 @@ class ApcCache extends Cache
* Retrieves a value from cache with a specified key.
* This is the implementation of the method declared in the parent class.
* @param string $key a unique key identifying the cached value
* @return string the value stored in cache, false if the value is not in the cache or expired.
* @return string
|boolean
the value stored in cache, false if the value is not in the cache or expired.
*/
protected
function
getValue
(
$key
)
{
...
...
yii/caching/Cache.php
View file @
9c2eb4df
...
...
@@ -247,7 +247,7 @@ abstract class Cache extends Component implements \ArrayAccess
* This method should be implemented by child classes to retrieve the data
* from specific cache storage.
* @param string $key a unique key identifying the cached value
* @return string the value stored in cache, false if the value is not in the cache or expired.
* @return string
|boolean
the value stored in cache, false if the value is not in the cache or expired.
*/
abstract
protected
function
getValue
(
$key
);
...
...
yii/caching/DbCache.php
View file @
9c2eb4df
...
...
@@ -92,7 +92,7 @@ class DbCache extends Cache
* Retrieves a value from cache with a specified key.
* This is the implementation of the method declared in the parent class.
* @param string $key a unique key identifying the cached value
* @return string the value stored in cache, false if the value is not in the cache or expired.
* @return string
|boolean
the value stored in cache, false if the value is not in the cache or expired.
*/
protected
function
getValue
(
$key
)
{
...
...
yii/caching/DummyCache.php
View file @
9c2eb4df
...
...
@@ -24,7 +24,7 @@ class DummyCache extends Cache
* Retrieves a value from cache with a specified key.
* This is the implementation of the method declared in the parent class.
* @param string $key a unique key identifying the cached value
* @return string the value stored in cache, false if the value is not in the cache or expired.
* @return string
|boolean
the value stored in cache, false if the value is not in the cache or expired.
*/
protected
function
getValue
(
$key
)
{
...
...
yii/caching/FileCache.php
View file @
9c2eb4df
...
...
@@ -61,7 +61,7 @@ class FileCache extends Cache
* Retrieves a value from cache with a specified key.
* This is the implementation of the method declared in the parent class.
* @param string $key a unique key identifying the cached value
* @return string the value stored in cache, false if the value is not in the cache or expired.
* @return string
|boolean
the value stored in cache, false if the value is not in the cache or expired.
*/
protected
function
getValue
(
$key
)
{
...
...
yii/caching/MemCache.php
View file @
9c2eb4df
...
...
@@ -7,7 +7,6 @@
namespace
yii\caching
;
use
yii\base\Exception
;
use
yii\base\InvalidConfigException
;
/**
...
...
@@ -21,7 +20,7 @@ use yii\base\InvalidConfigException;
* MemCache can be configured with a list of memcache servers by settings its [[servers]] property.
* By default, MemCache assumes there is a memcache server running on localhost at port 11211.
*
* See [[Cache]] for common cache operations that
Apc
Cache supports.
* See [[Cache]] for common cache operations that
Mem
Cache supports.
*
* Note, there is no security measure to protected data in memcache.
* All data in memcache can be accessed by any process running in the system.
...
...
@@ -89,7 +88,7 @@ class MemCache extends Cache
if
(
count
(
$servers
))
{
foreach
(
$servers
as
$server
)
{
if
(
$server
->
host
===
null
)
{
throw
new
Exception
(
"The 'host' property must be specified for every memcache server."
);
throw
new
InvalidConfig
Exception
(
"The 'host' property must be specified for every memcache server."
);
}
if
(
$this
->
useMemcached
)
{
$cache
->
addServer
(
$server
->
host
,
$server
->
port
,
$server
->
weight
);
...
...
@@ -145,7 +144,7 @@ class MemCache extends Cache
* Retrieves a value from cache with a specified key.
* This is the implementation of the method declared in the parent class.
* @param string $key a unique key identifying the cached value
* @return string the value stored in cache, false if the value is not in the cache or expired.
* @return string
|boolean
the value stored in cache, false if the value is not in the cache or expired.
*/
protected
function
getValue
(
$key
)
{
...
...
yii/caching/WinCache.php
View file @
9c2eb4df
...
...
@@ -24,7 +24,7 @@ class WinCache extends Cache
* Retrieves a value from cache with a specified key.
* This is the implementation of the method declared in the parent class.
* @param string $key a unique key identifying the cached value
* @return string the value stored in cache, false if the value is not in the cache or expired.
* @return string
|boolean
the value stored in cache, false if the value is not in the cache or expired.
*/
protected
function
getValue
(
$key
)
{
...
...
yii/caching/XCache.php
View file @
9c2eb4df
...
...
@@ -25,7 +25,7 @@ class XCache extends Cache
* Retrieves a value from cache with a specified key.
* This is the implementation of the method declared in the parent class.
* @param string $key a unique key identifying the cached value
* @return string the value stored in cache, false if the value is not in the cache or expired.
* @return string
|boolean
the value stored in cache, false if the value is not in the cache or expired.
*/
protected
function
getValue
(
$key
)
{
...
...
yii/caching/ZendDataCache.php
View file @
9c2eb4df
...
...
@@ -24,7 +24,7 @@ class ZendDataCache extends Cache
* Retrieves a value from cache with a specified key.
* This is the implementation of the method declared in the parent class.
* @param string $key a unique key identifying the cached value
* @return string the value stored in cache, false if the value is not in the cache or expired.
* @return string
|boolean
the value stored in cache, false if the value is not in the cache or expired.
*/
protected
function
getValue
(
$key
)
{
...
...
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