-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\CMS\Cache; | ||
|
||
defined('_JEXEC') or die; | ||
|
||
/** | ||
* The cache controller interface. | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
interface CacheControllerInterface | ||
{ | ||
/** | ||
* Get stored cached data by ID and group. | ||
* | ||
* @param string $id The cache data ID | ||
* @param string $group The cache data group | ||
* | ||
* @return mixed Boolean false on no result, cached object otherwise | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
public function get($id, $group = null); | ||
|
||
/** | ||
* Store data to cache by ID and group. | ||
* | ||
* @param mixed $data The data to store | ||
* @param string $id The cache data ID | ||
* @param string $group The cache data group | ||
* @param boolean $wrkarounds True to use wrkarounds | ||
* | ||
* @return boolean True if cache stored | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
public function store($data, $id, $group = null, $wrkarounds = true); | ||
} |