Skip to content

Commit 13fd337

Browse files
authored
Merge pull request #4630 from MGatner/cache-clean
Cache Returns Types
2 parents 7742812 + 9fbbe89 commit 13fd337

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

system/Cache/CacheInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function get(string $key);
4141
* @param mixed $value The data to save
4242
* @param integer $ttl Time To Live, in seconds (default 60)
4343
*
44-
* @return mixed
44+
* @return boolean Success or failure
4545
*/
4646
public function save(string $key, $value, int $ttl = 60);
4747

@@ -52,7 +52,7 @@ public function save(string $key, $value, int $ttl = 60);
5252
*
5353
* @param string $key Cache item name
5454
*
55-
* @return mixed
55+
* @return boolean Success or failure
5656
*/
5757
public function delete(string $key);
5858

@@ -85,7 +85,7 @@ public function decrement(string $key, int $offset = 1);
8585
/**
8686
* Will delete all items in the entire cache.
8787
*
88-
* @return mixed
88+
* @return boolean Success or failure
8989
*/
9090
public function clean();
9191

system/Cache/Handlers/DummyHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function remember(string $key, int $ttl, Closure $callback)
6565
* @param mixed $value The data to save
6666
* @param integer $ttl Time To Live, in seconds (default 60)
6767
*
68-
* @return mixed
68+
* @return boolean Success or failure
6969
*/
7070
public function save(string $key, $value, int $ttl = 60)
7171
{
@@ -79,7 +79,7 @@ public function save(string $key, $value, int $ttl = 60)
7979
*
8080
* @param string $key Cache item name
8181
*
82-
* @return boolean
82+
* @return boolean Success or failure
8383
*/
8484
public function delete(string $key)
8585
{
@@ -135,7 +135,7 @@ public function decrement(string $key, int $offset = 1)
135135
/**
136136
* Will delete all items in the entire cache.
137137
*
138-
* @return boolean
138+
* @return boolean Success or failure
139139
*/
140140
public function clean()
141141
{

system/Cache/Handlers/FileHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function get(string $key)
111111
* @param mixed $value The data to save
112112
* @param integer $ttl Time To Live, in seconds (default 60)
113113
*
114-
* @return mixed
114+
* @return boolean Success or failure
115115
*/
116116
public function save(string $key, $value, int $ttl = 60)
117117
{
@@ -149,7 +149,7 @@ public function save(string $key, $value, int $ttl = 60)
149149
*
150150
* @param string $key Cache item name
151151
*
152-
* @return boolean
152+
* @return boolean Success or failure
153153
*/
154154
public function delete(string $key)
155155
{
@@ -253,7 +253,7 @@ public function decrement(string $key, int $offset = 1)
253253
/**
254254
* Will delete all items in the entire cache.
255255
*
256-
* @return boolean
256+
* @return boolean Success or failure
257257
*/
258258
public function clean()
259259
{

system/Cache/Handlers/MemcachedHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function get(string $key)
202202
* @param mixed $value The data to save
203203
* @param integer $ttl Time To Live, in seconds (default 60)
204204
*
205-
* @return mixed
205+
* @return boolean Success or failure
206206
*/
207207
public function save(string $key, $value, int $ttl = 60)
208208
{
@@ -238,7 +238,7 @@ public function save(string $key, $value, int $ttl = 60)
238238
*
239239
* @param string $key Cache item name
240240
*
241-
* @return boolean
241+
* @return boolean Success or failure
242242
*/
243243
public function delete(string $key)
244244
{
@@ -313,7 +313,7 @@ public function decrement(string $key, int $offset = 1)
313313
/**
314314
* Will delete all items in the entire cache.
315315
*
316-
* @return boolean
316+
* @return boolean Success or failure
317317
*/
318318
public function clean()
319319
{

system/Cache/Handlers/PredisHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function get(string $key)
138138
* @param mixed $value The data to save
139139
* @param integer $ttl Time To Live, in seconds (default 60)
140140
*
141-
* @return mixed
141+
* @return boolean Success or failure
142142
*/
143143
public function save(string $key, $value, int $ttl = 60)
144144
{
@@ -176,7 +176,7 @@ public function save(string $key, $value, int $ttl = 60)
176176
*
177177
* @param string $key Cache item name
178178
*
179-
* @return boolean
179+
* @return boolean Success or failure
180180
*/
181181
public function delete(string $key)
182182
{
@@ -240,7 +240,7 @@ public function decrement(string $key, int $offset = 1)
240240
/**
241241
* Will delete all items in the entire cache.
242242
*
243-
* @return boolean
243+
* @return boolean Success or failure
244244
*/
245245
public function clean()
246246
{

system/Cache/Handlers/RedisHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function get(string $key)
169169
* @param mixed $value The data to save
170170
* @param integer $ttl Time To Live, in seconds (default 60)
171171
*
172-
* @return mixed
172+
* @return boolean Success or failure
173173
*/
174174
public function save(string $key, $value, int $ttl = 60)
175175
{
@@ -212,7 +212,7 @@ public function save(string $key, $value, int $ttl = 60)
212212
*
213213
* @param string $key Cache item name
214214
*
215-
* @return boolean
215+
* @return boolean Success or failure
216216
*/
217217
public function delete(string $key)
218218
{
@@ -293,7 +293,7 @@ public function decrement(string $key, int $offset = 1)
293293
/**
294294
* Will delete all items in the entire cache.
295295
*
296-
* @return boolean
296+
* @return boolean Success or failure
297297
*/
298298
public function clean()
299299
{

system/Cache/Handlers/WincacheHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function get(string $key)
8383
* @param mixed $value The data to save
8484
* @param integer $ttl Time To Live, in seconds (default 60)
8585
*
86-
* @return mixed
86+
* @return boolean Success or failure
8787
*
8888
* @codeCoverageIgnore
8989
*/
@@ -101,7 +101,7 @@ public function save(string $key, $value, int $ttl = 60)
101101
*
102102
* @param string $key Cache item name
103103
*
104-
* @return boolean
104+
* @return boolean Success or failure
105105
*
106106
* @codeCoverageIgnore
107107
*/
@@ -177,7 +177,7 @@ public function decrement(string $key, int $offset = 1)
177177
/**
178178
* Will delete all items in the entire cache.
179179
*
180-
* @return boolean
180+
* @return boolean Success or failure
181181
*
182182
* @codeCoverageIgnore
183183
*/

0 commit comments

Comments
 (0)