MongoDB Cache class #1951

Merged
merged 4 commits into from Jan 14, 2014

Conversation

Projects
None yet
2 participants
@klimov-paul
Member

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?

@cebe

cebe Jan 13, 2014

Member

can be array?

This comment has been minimized.

@klimov-paul

klimov-paul Jan 14, 2014

Member

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

@klimov-paul

klimov-paul Jan 14, 2014

Member

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

extensions/mongodb/Cache.php
+ * @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

**/ -> */

@cebe

cebe Jan 13, 2014

Member

**/ -> */

This comment has been minimized.

@klimov-paul

klimov-paul Jan 14, 2014

Member

fixed.

@cebe

This comment has been minimized.

Show comment
Hide comment
@cebe

cebe Jan 13, 2014

Member

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

Member

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

@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