Skip to content

Commit 594c4cb

Browse files
committed
Add note about Cache::has. Closes laravel#233.
1 parent 2cc970c commit 594c4cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cache.md

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ The cache configuration file also contains various other options, which are docu
2424

2525
Cache::add('key', 'value', $minutes);
2626

27+
**Checking For Existence In Cache**
28+
29+
if (Cache::has('key'))
30+
{
31+
//
32+
}
33+
2734
**Retrieving An Item From The Cache**
2835

2936
$value = Cache::get('key');

0 commit comments

Comments
 (0)