| @@ 103-110 (lines=8) @@ | ||
| 100 | /** |
|
| 101 | * {@inheritdoc} |
|
| 102 | */ |
|
| 103 | public function read($key) |
|
| 104 | { |
|
| 105 | $this->isBucket(); |
|
| 106 | $object = $this->bucket->object($this->computePath($key)); |
|
| 107 | $info = $object->info(); |
|
| 108 | $this->setResources($key, $info); |
|
| 109 | return $object->downloadAsString(); |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * {@inheritdoc} |
|
| @@ 200-207 (lines=8) @@ | ||
| 197 | /** |
|
| 198 | * {@inheritdoc} |
|
| 199 | */ |
|
| 200 | public function mtime($key) |
|
| 201 | { |
|
| 202 | $this->isBucket(); |
|
| 203 | $object = $object = $this->bucket->object($this->computePath($key)); |
|
| 204 | $info = $object->info(); |
|
| 205 | $this->setResources($key, $info); |
|
| 206 | return strtotime($info['updated']); |
|
| 207 | } |
|
| 208 | ||
| 209 | /** |
|
| 210 | * {@inheritdoc} |
|