mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Update admin module to use new Cache system
This commit is contained in:
parent
7d80bbe27d
commit
89ae581e55
11 changed files with 32 additions and 16 deletions
2
common/framework/drivers/cache/apc.php
vendored
2
common/framework/drivers/cache/apc.php
vendored
|
|
@ -38,7 +38,7 @@ class APC implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
* @param mixed $config
|
||||
* @return bool
|
||||
*/
|
||||
public function validateSettings($config)
|
||||
public static function validateSettings($config)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
2
common/framework/drivers/cache/file.php
vendored
2
common/framework/drivers/cache/file.php
vendored
|
|
@ -49,7 +49,7 @@ class File implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
* @param mixed $config
|
||||
* @return bool
|
||||
*/
|
||||
public function validateSettings($config)
|
||||
public static function validateSettings($config)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
2
common/framework/drivers/cache/memcached.php
vendored
2
common/framework/drivers/cache/memcached.php
vendored
|
|
@ -66,7 +66,7 @@ class Memcached implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
* @param mixed $config
|
||||
* @return bool
|
||||
*/
|
||||
public function validateSettings($config)
|
||||
public static function validateSettings($config)
|
||||
{
|
||||
if (class_exists('\\Memcached'))
|
||||
{
|
||||
|
|
|
|||
2
common/framework/drivers/cache/redis.php
vendored
2
common/framework/drivers/cache/redis.php
vendored
|
|
@ -68,7 +68,7 @@ class Redis implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
* @param mixed $config
|
||||
* @return bool
|
||||
*/
|
||||
public function validateSettings($config)
|
||||
public static function validateSettings($config)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
2
common/framework/drivers/cache/wincache.php
vendored
2
common/framework/drivers/cache/wincache.php
vendored
|
|
@ -38,7 +38,7 @@ class WinCache implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
* @param mixed $config
|
||||
* @return bool
|
||||
*/
|
||||
public function validateSettings($config)
|
||||
public static function validateSettings($config)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
2
common/framework/drivers/cache/xcache.php
vendored
2
common/framework/drivers/cache/xcache.php
vendored
|
|
@ -38,7 +38,7 @@ class XCache implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
* @param mixed $config
|
||||
* @return bool
|
||||
*/
|
||||
public function validateSettings($config)
|
||||
public static function validateSettings($config)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ interface CacheInterface
|
|||
* @param mixed $config
|
||||
* @return bool
|
||||
*/
|
||||
public function validateSettings($config);
|
||||
public static function validateSettings($config);
|
||||
|
||||
/**
|
||||
* Get the value of a key.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue