Skip to content

Commit e639b47

Browse files
committed
Add links to Laravel docs for more details
1 parent 2a958da commit e639b47

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: docs/cache.txt

+8-3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ add a store configuration by using the ``mongodb`` driver in ``config/cache.php`
3131
],
3232
],
3333

34+
To configure the ``mongodb`` database connection, see the :ref:`laravel-fundamentals-connection` section.
35+
3436
The following table describes a list of cache and lock options
3537
and their default values:
3638

@@ -57,7 +59,7 @@ and their default values:
5759
- Default ``cache_locks``. Name of the MongoDB collection to store locks.
5860

5961
* - ``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.
6163

6264
* - ``lock_timeout``
6365
- Default ``86400``. Time-to-live of the locks, in seconds.
@@ -150,6 +152,9 @@ adds 5, and removes 2.
150152

151153
{+odm-short+} supports incrementing and decrementing with integer and float values.
152154

155+
For more information on using cache, see the `Laravel Cache documentation
156+
<https://laravel.com/docs/{+laravel-docs-version+}/cache#cache-usage>`__.
157+
153158
Configuring MongoDB as Default Cache
154159
------------------------------------
155160

@@ -212,7 +217,6 @@ increments a counter each time it is invoked.
212217
}
213218
}
214219

215-
216220
Using MongoDB Lock
217221
------------------
218222

@@ -232,4 +236,5 @@ about race conditions. The following example implements an atomic lock:
232236
$lock->release();
233237
}
234238

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

Comments
 (0)