Skip to content

Commit 0f1a5ff

Browse files
author
Joe Bennett
committed
#42229 update phpdoc to recommend createIndex over ensureIndex
1 parent 68e97af commit 0f1a5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session/database.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ performance. Run this from the `MongoDB shell`_:
532532
.. code-block:: javascript
533533
534534
use session_db
535-
db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
535+
db.session.createIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
536536
537537
Configuring the Session Field Names
538538
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)