| @@ 179-188 (lines=10) @@ | ||
| 176 | * @param array $tags |
|
| 177 | * @return boolean |
|
| 178 | */ |
|
| 179 | protected function doSave($data, $id, array $tags = array()) |
|
| 180 | { |
|
| 181 | $this->validateIdentifier($id); |
|
| 182 | ||
| 183 | if (!empty($tags)) { |
|
| 184 | $this->saveTagsForId($id, $tags); |
|
| 185 | } |
|
| 186 | ||
| 187 | return $this->getOption('client')->set($id, $data, $this->getOption('compress', 0)); |
|
| 188 | } |
|
| 189 | ||
| 190 | /** |
|
| 191 | * {@inheritdoc} |
|
| @@ 98-107 (lines=10) @@ | ||
| 95 | * @param array $tags |
|
| 96 | * @return boolean |
|
| 97 | */ |
|
| 98 | protected function doSave($data, $id, array $tags = array()) |
|
| 99 | { |
|
| 100 | $this->validateIdentifier($id); |
|
| 101 | ||
| 102 | if (!empty($tags)) { |
|
| 103 | $this->saveTagsForId($id, $tags); |
|
| 104 | } |
|
| 105 | ||
| 106 | return $this->getOption('client')->set($id, $data); |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * {@inheritdoc} |
|