Fix some phpdoc errors and rename interface
This commit is contained in:
parent
02aa44d055
commit
1ab7ca0a19
|
@ -8,7 +8,9 @@
|
||||||
|
|
||||||
namespace OC\Memcache;
|
namespace OC\Memcache;
|
||||||
|
|
||||||
class Factory {
|
use \OCP\ICacheFactory;
|
||||||
|
|
||||||
|
class Factory implements ICacheFactory {
|
||||||
/**
|
/**
|
||||||
* @var string $globalPrefix
|
* @var string $globalPrefix
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -8,17 +8,19 @@
|
||||||
|
|
||||||
namespace OCP;
|
namespace OCP;
|
||||||
|
|
||||||
interface CacheFactory{
|
interface ICacheFactory{
|
||||||
/**
|
/**
|
||||||
* Get a memory cache instance
|
* Get a memory cache instance
|
||||||
*
|
*
|
||||||
|
* All entries added trough the cache instance will be namespaced by $prefix to prevent collisions between apps
|
||||||
|
*
|
||||||
* @param string $prefix
|
* @param string $prefix
|
||||||
* @return $return \OCP\ICache
|
* @return \OCP\ICache
|
||||||
*/
|
*/
|
||||||
public function create($prefix = '');
|
public function create($prefix = '');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a memory cache backend is available
|
* Check if any memory cache backend is available
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
|
@ -144,7 +144,7 @@ interface IServerContainer {
|
||||||
/**
|
/**
|
||||||
* Returns an \OCP\CacheFactory instance
|
* Returns an \OCP\CacheFactory instance
|
||||||
*
|
*
|
||||||
* @return \OCP\CacheFactory
|
* @return \OCP\ICacheFactory
|
||||||
*/
|
*/
|
||||||
function getMemCacheFactory();
|
function getMemCacheFactory();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue