Merge pull request #25677 from nextcloud/drop/cache-factory-create
Drop \OC\Memcache\Factory::create
This commit is contained in:
commit
61f13583a2
|
@ -155,16 +155,6 @@ class Factory implements ICacheFactory {
|
|||
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
|
||||
*
|
||||
|
|
|
@ -34,18 +34,6 @@ namespace OCP;
|
|||
* @since 7.0.0
|
||||
*/
|
||||
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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue