src/Storage/Apcu.php 1 location
|
@@ 49-51 (lines=3) @@
|
46 |
|
list($ttl, $status) = array_values($fetched); |
47 |
|
|
48 |
|
// If a ttl was stored with the status and it is outdated, the default status (closed breaker) is returned |
49 |
|
if ($ttl !== 0 && $status->getLastUpdate() + $ttl < time()) { |
50 |
|
$status = new Status($config); |
51 |
|
} |
52 |
|
|
53 |
|
return $status; |
54 |
|
} |
src/Storage/LocalArray.php 1 location
|
@@ 28-30 (lines=3) @@
|
25 |
|
list($ttl, $status) = array_values($this->store[$serviceName]); |
26 |
|
|
27 |
|
// If a ttl was stored with the status and it is outdated, the default status (closed breaker) is returned |
28 |
|
if ($ttl !== 0 && $status->getLastUpdate() + $ttl < time()) { |
29 |
|
$status = new Status($config); |
30 |
|
} |
31 |
|
|
32 |
|
return $status; |
33 |
|
} |