Skip to content

Commit

Permalink
#42229 update phpdoc to recommend createIndex over ensureIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bennett committed Jul 22, 2021
1 parent e18c77c commit 74abdd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Session/Storage/Handler/MongoDbSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MongoDbSessionHandler extends AbstractSessionHandler
* A TTL collections can be used on MongoDB 2.2+ to cleanup expired sessions
* automatically. Such an index can for example look like this:
*
* db.<session-collection>.ensureIndex(
* db.<session-collection>.createIndex(
* { "<expiry-field>": 1 },
* { "expireAfterSeconds": 0 }
* )
Expand Down

0 comments on commit 74abdd6

Please sign in to comment.