@@ -31,6 +31,8 @@ add a store configuration by using the ``mongodb`` driver in ``config/cache.php`
31
31
],
32
32
],
33
33
34
+ To configure the ``mongodb`` database connection, see the :ref:`laravel-fundamentals-connection` section.
35
+
34
36
The following table describes a list of cache and lock options
35
37
and their default values:
36
38
@@ -57,7 +59,7 @@ and their default values:
57
59
- Default ``cache_locks``. Name of the MongoDB collection to store locks.
58
60
59
61
* - ``lock_lottery``
60
- - Default ``[2, 100]``. Probability [chance, total] of pruning expired cache items. Set to [0, 0] to disable.
62
+ - Default ``[2, 100]``. Probability `` [chance, total]`` of pruning expired cache items. Set to `` [0, 0]`` to disable.
61
63
62
64
* - ``lock_timeout``
63
65
- Default ``86400``. Time-to-live of the locks, in seconds.
@@ -150,6 +152,9 @@ adds 5, and removes 2.
150
152
151
153
{+odm-short+} supports incrementing and decrementing with integer and float values.
152
154
155
+ For more information on using cache, see the `Laravel Cache documentation
156
+ <https://laravel.com/docs/{+laravel-docs-version+}/cache#cache-usage>`__.
157
+
153
158
Configuring MongoDB as Default Cache
154
159
------------------------------------
155
160
@@ -212,7 +217,6 @@ increments a counter each time it is invoked.
212
217
}
213
218
}
214
219
215
-
216
220
Using MongoDB Lock
217
221
------------------
218
222
@@ -232,4 +236,5 @@ about race conditions. The following example implements an atomic lock:
232
236
$lock->release();
233
237
}
234
238
235
-
239
+ For more information on using locks, see the `Laravel Locks documentation
240
+ <https://laravel.com/docs/{+laravel-docs-version+}/cache#atomic-locks>`__.
0 commit comments