nextcloud/lib/public/cachefactory.php

27 lines
493 B
PHP
Raw Normal View History

<?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{
/**
* Get a memory cache instance
*
* @param string $prefix
* @return $return \OCP\ICache
*/
public function create($prefix = '');
/**
* Check if a memory cache backend is available
*
* @return bool
*/
public function isAvailable();
}