File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
121121
122122 public function getPicture(string $url): void {
123123 $cache = $this->cacheFactory->createLocal('my-app-pictures');
124- $cachedPicture = $this-> cache->get($url);
124+ $cachedPicture = $cache->get($url);
125125 if ($cachedPicture !== null) {
126126 return $cachedPicture;
127127 }
@@ -157,7 +157,7 @@ A distributed cache instance can be acquired through the ``\OCP\ICacheFactory``
157157
158158 public function getPicture(string $url): void {
159159 $cache = $this->cacheFactory->createDistributed('my-app-pictures');
160- $cachedPicture = $this-> cache->get($url);
160+ $cachedPicture = $cache->get($url);
161161 if ($cachedPicture !== null) {
162162 return $cachedPicture;
163163 }
You can’t perform that action at this time.
0 commit comments