Skip to content

Commit 28f8be7

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

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: docs/cache.txt

+6-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ and their default values:
5757
- Default ``cache_locks``. Name of the MongoDB collection to store locks.
5858

5959
* - ``lock_lottery``
60-
- Default ``[2, 100]``. Probability [chance, total] of pruning expired cache items. Set to [0, 0] to disable.
60+
- Default ``[2, 100]``. Probability ``[chance, total]`` of pruning expired cache items. Set to ``[0, 0]`` to disable.
6161

6262
* - ``lock_timeout``
6363
- Default ``86400``. Time-to-live of the locks, in seconds.
@@ -150,6 +150,9 @@ adds 5, and removes 2.
150150

151151
{+odm-short+} supports incrementing and decrementing with integer and float values.
152152

153+
For more information on using cache, see the `Laravel Cache documentation
154+
<https://laravel.com/docs/{+laravel-docs-version+}/cache#cache-usage>`__.
155+
153156
Configuring MongoDB as Default Cache
154157
------------------------------------
155158

@@ -212,7 +215,6 @@ increments a counter each time it is invoked.
212215
}
213216
}
214217

215-
216218
Using MongoDB Lock
217219
------------------
218220

@@ -232,4 +234,5 @@ about race conditions. The following example implements an atomic lock:
232234
$lock->release();
233235
}
234236

235-
237+
For more information on using locks, see the `Laravel Locks documentation
238+
<https://laravel.com/docs/{+laravel-docs-version+}/cache#atomic-locks>`__.

0 commit comments

Comments
 (0)