Skip to content

Commit 0f73f82

Browse files
committed
try Javascript
1 parent 415c13b commit 0f73f82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/doctrine/mongodb_session_storage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ Because MongoDB uses dynamic collection schemas, you do not need to do anything
162162
session collection. However, you may want to add an index to improve garbage collection performance.
163163
From the `MongoDB shell`_:
164164

165-
.. code-block:: bash
165+
.. code-block:: javascript
166166
167-
$ use session_db
168-
$ db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
167+
use session_db
168+
db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
169169
170170
.. _installed and configured a MongoDB server: http://docs.mongodb.org/manual/installation/
171171
.. _MongoDB shell: http://docs.mongodb.org/v2.2/tutorial/getting-started-with-the-mongo-shell/

0 commit comments

Comments
 (0)