From 070f290b5b2b0cb6ce43e9912dd219088558746f Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Sun, 21 Dec 2014 01:39:42 +0100 Subject: [PATCH] Add RedisCacheSource and ACP options --- com.woltlab.wcf/option.xml | 15 +++++-- .../cache/source/RedisCacheSource.class.php | 44 +++++++++++++++++++ wcfsetup/install/lang/de.xml | 6 +++ wcfsetup/install/lang/en.xml | 6 +++ 4 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 9de7014f4e..0fac46d002 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -89,6 +89,9 @@ general.cache + + general.cache + general 6 @@ -830,15 +833,21 @@ debug:mail_debug_logfile_path,!mail_use_f_param,!mail_smtp_host,!mail_smtp_port, radioButton - +memcached:wcf.acp.option.cache_source_type.memcached +redis:wcf.acp.option.cache_source_type.redis]]> + + diff --git a/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php new file mode 100644 index 0000000000..d606dc97b9 --- /dev/null +++ b/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php @@ -0,0 +1,44 @@ + + * @package com.woltlab.wcf + * @subpackage system.cache.source + * @category Community Framework + */ +class RedisCacheSource implements ICacheSource { + /** + * @see \wcf\system\cache\source\ICacheSource::flush() + */ + public function flush($cacheName, $useWildcard) { + + } + + /** + * @see \wcf\system\cache\source\ICacheSource::flushAll() + */ + public function flushAll() { + + } + + /** + * @see \wcf\system\cache\source\ICacheSource::get() + */ + public function get($cacheName, $maxLifetime) { + + } + + /** + * @see \wcf\system\cache\source\ICacheSource::set() + */ + public function set($cacheName, $value, $maxLifetime) { + + } +} diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 107fb5ddcb..02bb8ac0d9 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -134,6 +134,7 @@ + @@ -692,15 +693,20 @@ + + + memcached.org.]]> + + redis.io.]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 8422b42529..1641a50bf4 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -133,6 +133,7 @@ Examples for medium ID detection: + @@ -691,15 +692,20 @@ Examples for medium ID detection: + + + memcached.org.]]> + + redis.io.]]> -- 2.20.1