diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-10-01 11:38:45 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-10-01 11:38:45 +0200 |
commit | 40cd7570e6f4da7cc60d83a3e99c72a2fb99e3f7 (patch) | |
tree | dcdebcf139822b4613d932191ce2636b85a4f82f /tests/cache/cache_memory.php | |
parent | b003019958aad3303abef8b4f70159cff2670600 (diff) | |
download | forums-40cd7570e6f4da7cc60d83a3e99c72a2fb99e3f7.tar forums-40cd7570e6f4da7cc60d83a3e99c72a2fb99e3f7.tar.gz forums-40cd7570e6f4da7cc60d83a3e99c72a2fb99e3f7.tar.bz2 forums-40cd7570e6f4da7cc60d83a3e99c72a2fb99e3f7.tar.xz forums-40cd7570e6f4da7cc60d83a3e99c72a2fb99e3f7.zip |
[ticket/11224] Revert "Merge pull request #2460 from Nicofuma/ticket/11224"
This reverts commit d26436944173d1fa28a1abd96bca861381246860, reversing
changes made to 75fcfb1c1d68f1632e7beae3f59699ddff8e5292.
PHPBB3-11224
Diffstat (limited to 'tests/cache/cache_memory.php')
-rw-r--r-- | tests/cache/cache_memory.php | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/tests/cache/cache_memory.php b/tests/cache/cache_memory.php deleted file mode 100644 index c468cb4658..0000000000 --- a/tests/cache/cache_memory.php +++ /dev/null @@ -1,62 +0,0 @@ -<?php -/** -* -* @package testing -* @copyright (c) 2014 phpBB Group -* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 -* -*/ - -require_once dirname(__FILE__) . '/../../phpBB/includes/acm/acm_memory.php'; - -class phpbb_cache_memory extends acm_memory -{ - protected $data = array(); - - /** - * Set cache path - */ - function phpbb_cache_memory() - { - } - - /** - * Fetch an item from the cache - * - * @access protected - * @param string $var Cache key - * @return mixed Cached data - */ - function _read($var) - { - return $this->data[$var]; - } - - /** - * Store data in the cache - * - * @access protected - * @param string $var Cache key - * @param mixed $data Data to store - * @param int $ttl Time-to-live of cached data - * @return bool True if the operation succeeded - */ - function _write($var, $data, $ttl = 2592000) - { - $this->data[$var] = $data; - return true; - } - - /** - * Remove an item from the cache - * - * @access protected - * @param string $var Cache key - * @return bool True if the operation succeeded - */ - function _delete($var) - { - unset($this->data[$var]); - return true; - } -} |