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
399e7f82
Commit
399e7f82
authored
Jan 14, 2014
by
Paul Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc comments for MongoDB Cache fixed.
parent
5d3684fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cache.php
extensions/mongodb/Cache.php
+2
-1
No files found.
extensions/mongodb/Cache.php
View file @
399e7f82
...
@@ -42,6 +42,7 @@ class Cache extends \yii\caching\Cache
...
@@ -42,6 +42,7 @@ class Cache extends \yii\caching\Cache
public
$db
=
'mongodb'
;
public
$db
=
'mongodb'
;
/**
/**
* @var string|array the name of the MongoDB collection that stores the cache data.
* @var string|array the name of the MongoDB collection that stores the cache data.
* Please refer to [[Connection::getCollection()]] on how to specify this parameter.
* This collection is better to be pre-created with fields 'id' and 'expire' indexed.
* This collection is better to be pre-created with fields 'id' and 'expire' indexed.
*/
*/
public
$cacheCollection
=
'cache'
;
public
$cacheCollection
=
'cache'
;
...
@@ -49,7 +50,7 @@ class Cache extends \yii\caching\Cache
...
@@ -49,7 +50,7 @@ class Cache extends \yii\caching\Cache
* @var integer the probability (parts per million) that garbage collection (GC) should be performed
* @var integer the probability (parts per million) that garbage collection (GC) should be performed
* when storing a piece of data in the cache. Defaults to 100, meaning 0.01% chance.
* when storing a piece of data in the cache. Defaults to 100, meaning 0.01% chance.
* This number should be between 0 and 1000000. A value 0 meaning no GC will be performed at all.
* This number should be between 0 and 1000000. A value 0 meaning no GC will be performed at all.
*
*
/
*/
public
$gcProbability
=
100
;
public
$gcProbability
=
100
;
/**
/**
...
...
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