| @@ 66-75 (lines=10) @@ | ||
| 63 | /** |
|
| 64 | * {@inheritdoc} |
|
| 65 | */ |
|
| 66 | public function add($key, $value, $ttl) |
|
| 67 | { |
|
| 68 | $fileName = $this->getFileName($key); |
|
| 69 | ||
| 70 | if (file_exists($fileName)) { |
|
| 71 | return false; |
|
| 72 | } |
|
| 73 | ||
| 74 | return $this->set($key, $value, $ttl); |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * {@inheritdoc} |
|
| @@ 64-73 (lines=10) @@ | ||
| 61 | /** |
|
| 62 | * {@inheritdoc} |
|
| 63 | */ |
|
| 64 | public function add($key, $value, $ttl) |
|
| 65 | { |
|
| 66 | $fileName = $this->getFileName($key); |
|
| 67 | ||
| 68 | if (file_exists($fileName)) { |
|
| 69 | return false; |
|
| 70 | } |
|
| 71 | ||
| 72 | return $this->set($key, $value, $ttl); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * {@inheritdoc} |
|