Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB Cache class #1951

Merged
merged 4 commits into from Jan 14, 2014
Merged

MongoDB Cache class #1951

merged 4 commits into from Jan 14, 2014

Conversation

@klimov-paul
Copy link
Member

@klimov-paul klimov-paul commented Jan 13, 2014

MongoDB Cache class added.

*/
public $db = 'mongodb';
/**
* @var string|array the name of the MongoDB collection that stores the cache data.

This comment has been minimized.

@cebe

cebe Jan 13, 2014
Member

can be array?

This comment has been minimized.

@klimov-paul

klimov-paul Jan 14, 2014
Author Member

Yes, see "yii\mongodb\Connection::getCollection()". I have added this reference to the doc comments.

* @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.
* This number should be between 0 and 1000000. A value 0 meaning no GC will be performed at all.
**/

This comment has been minimized.

@cebe

cebe Jan 13, 2014
Member

**/ -> */

This comment has been minimized.

@klimov-paul

klimov-paul Jan 14, 2014
Author Member

fixed.

@cebe
Copy link
Member

@cebe cebe commented Jan 13, 2014

Good job :) except the typo its ready for merge imo.

klimov-paul added a commit that referenced this pull request Jan 14, 2014
MongoDB Cache class
@klimov-paul klimov-paul merged commit ff18cff into yiisoft:master Jan 14, 2014
@klimov-paul klimov-paul deleted the klimov-paul:mongodb-cache branch Jun 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.