File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ A local cache instance can be acquired through the ``\OCP\ICacheFactory`` servic
121
121
122
122
public function getPicture(string $url): void {
123
123
$cache = $this->cacheFactory->createLocal('my-app-pictures');
124
- $cachedPicture = $this-> cache->get($url);
124
+ $cachedPicture = $cache->get($url);
125
125
if ($cachedPicture !== null) {
126
126
return $cachedPicture;
127
127
}
@@ -157,7 +157,7 @@ A distributed cache instance can be acquired through the ``\OCP\ICacheFactory``
157
157
158
158
public function getPicture(string $url): void {
159
159
$cache = $this->cacheFactory->createDistributed('my-app-pictures');
160
- $cachedPicture = $this-> cache->get($url);
160
+ $cachedPicture = $cache->get($url);
161
161
if ($cachedPicture !== null) {
162
162
return $cachedPicture;
163
163
}
You can’t perform that action at this time.
0 commit comments