@@ -221,7 +221,7 @@ support blocking, and expects a TTL to avoid stalled locks::
221221.. _lock-store-mongodb :
222222
223223MongoDbStore
224- ~~~~~~~~~~
224+ ~~~~~~~~~~~~
225225
226226The MongoDbStore saves locks on a MongoDB server, it requires a ``\MongoDB\Client `` connection.
227227This store does not support blocking, and expects a TTL to avoid stalled locks::
@@ -238,16 +238,16 @@ This store does not support blocking, and expects a TTL to avoid stalled locks::
238238
239239The ``MongoDbStore `` takes the following ``$options ``:
240240
241- ============== ========= ============== ===================================================================================
242- Option Mandatory Default Description
243- ============== ========= ============== ===================================================================================
244- database Yes The name of the database
245- collection No ``lock `` The name of the collection
246- resource_field No ``_id `` The field name for storing the lock id **MUST be uniquely indexed if you chage it **
247- token_field No ``token `` The field name for storing the lock token
248- aquired_field No `` aquired_at `` The field name for storing the acquisition timestamp
249- expiry_field No ``expires_at `` The field name for storing the expiry-timestamp
250- ============== ========= ============== ===================================================================================
241+ =============== = ============== ===================================================================================
242+ Option Default Description
243+ =============== = ============== ===================================================================================
244+ database The name of the database [Mandatory]
245+ collection ``lock `` The name of the collection
246+ resource_field ``_id `` The field name for storing the lock id **MUST be uniquely indexed if you chage it **
247+ token_field ``token `` The field name for storing the lock token
248+ acquired_field `` acquired_at `` The field name for storing the acquisition timestamp
249+ expiry_field ``expires_at `` The field name for storing the expiry-timestamp
250+ =============== = ============== ===================================================================================
251251
252252.. _lock-store-redis :
253253
@@ -466,7 +466,7 @@ method uses the Memcached's ``flush()`` method which purges and removes everythi
466466 dedicated Memcached service away from Cache.
467467
468468MongoDbStore
469- ~~~~~~~~~~~~~~
469+ ~~~~~~~~~~~~
470470
471471The MongoDbStore relies on a unique index on the ``<resource_field> ``. By default
472472this is ``_id `` which already has a unique index being the collection identifier.
0 commit comments