Merge pull request #25677 from nextcloud/drop/cache-factory-create

Drop \OC\Memcache\Factory::create
This commit is contained in:
Roeland Jago Douma 2021-03-09 19:37:34 +01:00 committed by GitHub
commit 61f13583a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 22 deletions

View File

@ -155,16 +155,6 @@ class Factory implements ICacheFactory {
return new $this->localCacheClass($this->globalPrefix . '/' . $prefix); return new $this->localCacheClass($this->globalPrefix . '/' . $prefix);
} }
/**
* @see \OC\Memcache\Factory::createDistributed()
* @param string $prefix
* @return ICache
* @deprecated 13.0.0 Use either createLocking, createDistributed or createLocal
*/
public function create(string $prefix = ''): ICache {
return $this->createDistributed($prefix);
}
/** /**
* check memcache availability * check memcache availability
* *

View File

@ -34,18 +34,6 @@ namespace OCP;
* @since 7.0.0 * @since 7.0.0
*/ */
interface ICacheFactory { interface ICacheFactory {
/**
* Get a distributed memory cache instance
*
* All entries added trough the cache instance will be namespaced by $prefix to prevent collisions between apps
*
* @param string $prefix
* @return ICache
* @since 7.0.0
* @deprecated 13.0.0 Use either createLocking, createDistributed or createLocal
*/
public function create(string $prefix = ''): ICache;
/** /**
* Check if any memory cache backend is available * Check if any memory cache backend is available
* *