| @@ 75-80 (lines=6) @@ | ||
| 72 | return null; |
|
| 73 | } |
|
| 74 | ||
| 75 | if ($this->ttlFix) { |
|
| 76 | if (isset($this->ttls[$key]) && ($this->ttls[$key] < microtime(true))) { |
|
| 77 | unset($this->ttls[$key]); |
|
| 78 | return null; |
|
| 79 | } |
|
| 80 | } |
|
| 81 | ||
| 82 | return $result; |
|
| 83 | } |
|
| @@ 94-99 (lines=6) @@ | ||
| 91 | return false; |
|
| 92 | } |
|
| 93 | ||
| 94 | if ($this->ttlFix) { |
|
| 95 | if (isset($this->ttls[$key]) && ($this->ttls[$key] < microtime(true))) { |
|
| 96 | unset($this->ttls[$key]); |
|
| 97 | return false; |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | return true; |
|
| 102 | } |
|