2014-01-08 18:18:12 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OCP;
|
|
|
|
|
|
|
|
interface CacheFactory{
|
|
|
|
/**
|
2014-01-09 16:54:50 +04:00
|
|
|
* Get a memory cache instance
|
|
|
|
*
|
2014-01-08 18:18:12 +04:00
|
|
|
* @param string $prefix
|
|
|
|
* @return $return \OCP\ICache
|
|
|
|
*/
|
|
|
|
public function create($prefix = '');
|
2014-01-09 16:54:50 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Check if a memory cache backend is available
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function isAvailable();
|
2014-01-08 18:18:12 +04:00
|
|
|
}
|