| @@ 162-175 (lines=14) @@ | ||
| 159 | /** |
|
| 160 | * {@inheritdoc} |
|
| 161 | */ |
|
| 162 | public function loadContentInfo($contentId) |
|
| 163 | { |
|
| 164 | return $this->getCacheValue( |
|
| 165 | $contentId, |
|
| 166 | 'ez-content-info-', |
|
| 167 | function ($contentId) { |
|
| 168 | return $this->persistenceHandler->contentHandler()->loadContentInfo($contentId); |
|
| 169 | }, |
|
| 170 | $this->getContentInfoTags, |
|
| 171 | $this->getContentInfoKeys, |
|
| 172 | '', |
|
| 173 | ['content' => $contentId] |
|
| 174 | ); |
|
| 175 | } |
|
| 176 | ||
| 177 | public function loadContentInfoList(array $contentIds) |
|
| 178 | { |
|
| @@ 177-190 (lines=14) @@ | ||
| 174 | ); |
|
| 175 | } |
|
| 176 | ||
| 177 | public function loadContentInfoList(array $contentIds) |
|
| 178 | { |
|
| 179 | return $this->getMultipleCacheValues( |
|
| 180 | $contentIds, |
|
| 181 | 'ez-content-info-', |
|
| 182 | function (array $cacheMissIds) { |
|
| 183 | return $this->persistenceHandler->contentHandler()->loadContentInfoList($cacheMissIds); |
|
| 184 | }, |
|
| 185 | $this->getContentInfoTags, |
|
| 186 | $this->getContentInfoKeys, |
|
| 187 | '', |
|
| 188 | ['content' => $contentIds] |
|
| 189 | ); |
|
| 190 | } |
|
| 191 | ||
| 192 | /** |
|
| 193 | * {@inheritdoc} |
|
| @@ 195-208 (lines=14) @@ | ||
| 192 | /** |
|
| 193 | * {@inheritdoc} |
|
| 194 | */ |
|
| 195 | public function loadContentInfoByRemoteId($remoteId) |
|
| 196 | { |
|
| 197 | return $this->getCacheValue( |
|
| 198 | $this->escapeForCacheKey($remoteId), |
|
| 199 | 'ez-content-info-byRemoteId-', |
|
| 200 | function () use ($remoteId) { |
|
| 201 | return $this->persistenceHandler->contentHandler()->loadContentInfoByRemoteId($remoteId); |
|
| 202 | }, |
|
| 203 | $this->getContentInfoTags, |
|
| 204 | $this->getContentInfoKeys, |
|
| 205 | '', |
|
| 206 | ['content' => $remoteId] |
|
| 207 | ); |
|
| 208 | } |
|
| 209 | ||
| 210 | /** |
|
| 211 | * {@inheritdoc} |
|