@@ -221,7 +221,7 @@ support blocking, and expects a TTL to avoid stalled locks::
221
221
.. _lock-store-mongodb :
222
222
223
223
MongoDbStore
224
- ~~~~~~~~~~
224
+ ~~~~~~~~~~~~
225
225
226
226
The MongoDbStore saves locks on a MongoDB server, it requires a ``\MongoDB\Client `` connection.
227
227
This 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::
238
238
239
239
The ``MongoDbStore `` takes the following ``$options ``:
240
240
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
+ =============== = ============== ===================================================================================
251
251
252
252
.. _lock-store-redis :
253
253
@@ -466,7 +466,7 @@ method uses the Memcached's ``flush()`` method which purges and removes everythi
466
466
dedicated Memcached service away from Cache.
467
467
468
468
MongoDbStore
469
- ~~~~~~~~~~~~~~
469
+ ~~~~~~~~~~~~
470
470
471
471
The MongoDbStore relies on a unique index on the ``<resource_field> ``. By default
472
472
this is ``_id `` which already has a unique index being the collection identifier.
0 commit comments