Allow null as cache parameter (if no cache was found) and for cache removal.
This commit is contained in:
parent
dde832b76c
commit
c85cc13d1a
|
@ -150,7 +150,7 @@ class Autoloader {
|
||||||
* @brief Sets the optional low-latency cache for class to path mapping.
|
* @brief Sets the optional low-latency cache for class to path mapping.
|
||||||
* @param \OC\Memcache\Cache $memoryCache Instance of memory cache.
|
* @param \OC\Memcache\Cache $memoryCache Instance of memory cache.
|
||||||
*/
|
*/
|
||||||
public function setMemoryCache(\OC\Memcache\Cache $memoryCache) {
|
public function setMemoryCache(\OC\Memcache\Cache $memoryCache = null) {
|
||||||
$this->memoryCache = $memoryCache;
|
$this->memoryCache = $memoryCache;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue