From: Maximilian Mader Date: Sun, 21 Dec 2014 00:39:42 +0000 (+0100) Subject: Add RedisCacheSource and ACP options X-Git-Tag: 3.0.0_Beta_1~2305^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=070f290b5b2b0cb6ce43e9912dd219088558746f;p=GitHub%2FWoltLab%2FWCF.git Add RedisCacheSource and ACP options --- 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.]]>