Skip to content

Commit 483bd3f

Browse files
dmitry-ivanovtaylorotwell
authored andcommitted
[5.7] Fixed doc blocks for the Cache repository methods. (#26347)
1 parent 8699a62 commit 483bd3f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Illuminate/Cache/Repository.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function forever($key, $value)
308308
}
309309

310310
/**
311-
* Get an item from the cache, or store the default value.
311+
* Get an item from the cache, or execute the given Closure and store the result.
312312
*
313313
* @param string $key
314314
* @param \DateTimeInterface|\DateInterval|float|int $minutes
@@ -332,9 +332,9 @@ public function remember($key, $minutes, Closure $callback)
332332
}
333333

334334
/**
335-
* Get an item from the cache, or store the default value forever.
335+
* Get an item from the cache, or execute the given Closure and store the result forever.
336336
*
337-
* @param string $key
337+
* @param string $key
338338
* @param \Closure $callback
339339
* @return mixed
340340
*/
@@ -344,9 +344,9 @@ public function sear($key, Closure $callback)
344344
}
345345

346346
/**
347-
* Get an item from the cache, or store the default value forever.
347+
* Get an item from the cache, or execute the given Closure and store the result forever.
348348
*
349-
* @param string $key
349+
* @param string $key
350350
* @param \Closure $callback
351351
* @return mixed
352352
*/

src/Illuminate/Contracts/Cache/Repository.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function decrement($key, $value = 1);
8181
public function forever($key, $value);
8282

8383
/**
84-
* Get an item from the cache, or store the default value.
84+
* Get an item from the cache, or execute the given Closure and store the result.
8585
*
8686
* @param string $key
8787
* @param \DateTimeInterface|\DateInterval|float|int $minutes
@@ -91,18 +91,18 @@ public function forever($key, $value);
9191
public function remember($key, $minutes, Closure $callback);
9292

9393
/**
94-
* Get an item from the cache, or store the default value forever.
94+
* Get an item from the cache, or execute the given Closure and store the result forever.
9595
*
96-
* @param string $key
96+
* @param string $key
9797
* @param \Closure $callback
9898
* @return mixed
9999
*/
100100
public function sear($key, Closure $callback);
101101

102102
/**
103-
* Get an item from the cache, or store the default value forever.
103+
* Get an item from the cache, or execute the given Closure and store the result forever.
104104
*
105-
* @param string $key
105+
* @param string $key
106106
* @param \Closure $callback
107107
* @return mixed
108108
*/

0 commit comments

Comments
 (0)