зеркало из https://github.com/nextcloud/server.git
Allow null as cache parameter (if no cache was found) and for cache removal.
This commit is contained in:
Родитель
dde832b76c
Коммит
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче