Added redis to load
This commit is contained in:
@@ -30,3 +30,7 @@ defined('SHOW_DEBUG_BACKTRACE') || define('SHOW_DEBUG_BACKTRACE', true);
|
||||
| items. It can always be used within your own application too.
|
||||
*/
|
||||
defined('CI_DEBUG') || define('CI_DEBUG', true);
|
||||
|
||||
define('ENV_ID', 'DEVLP20233103-A3');
|
||||
define('HOME_PAGE_BACKGROUND', 'api_bk.jpg');
|
||||
define('CACHE_DOMAIN', 'wrench.dev');
|
||||
@@ -19,3 +19,7 @@ error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE &
|
||||
| release of the framework.
|
||||
*/
|
||||
defined('CI_DEBUG') || define('CI_DEBUG', false);
|
||||
|
||||
define('ENV_ID', 'PRAODUCTIONG20233103-A3');
|
||||
define('HOME_PAGE_BACKGROUND', 'api_bk.jpg');
|
||||
define('CACHE_DOMAIN', 'wrench.prod');
|
||||
@@ -30,3 +30,7 @@ defined('SHOW_DEBUG_BACKTRACE') || define('SHOW_DEBUG_BACKTRACE', true);
|
||||
| release of the framework.
|
||||
*/
|
||||
defined('CI_DEBUG') || define('CI_DEBUG', true);
|
||||
|
||||
define('ENV_ID', 'TESTING20233103-A3');
|
||||
define('HOME_PAGE_BACKGROUND', 'api_bk.jpg');
|
||||
define('CACHE_DOMAIN', 'wrench.test');
|
||||
@@ -22,7 +22,7 @@ class Cache extends BaseConfig
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $handler = 'file';
|
||||
public $handler = 'redis';
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
@@ -35,7 +35,7 @@ class Cache extends BaseConfig
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $backupHandler = 'dummy';
|
||||
public $backupHandler = 'file';
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
@@ -153,11 +153,12 @@ class Cache extends BaseConfig
|
||||
* @var array<string, int|string|null>
|
||||
*/
|
||||
public $redis = [
|
||||
'host' => '127.0.0.1',
|
||||
'password' => null,
|
||||
'port' => 6379,
|
||||
'host' => '10.0.0.32',
|
||||
'password' => '7f079034e166ecf52d82cbec9876e4dc8a154b0c37248f3fa1734d4eeab938d5',
|
||||
'port' => 6378,
|
||||
'timeout' => 0,
|
||||
'database' => 0,
|
||||
'prefix' => 'WRB',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -77,6 +77,25 @@ class Database extends Config
|
||||
'foreignKeys' => true,
|
||||
];
|
||||
|
||||
public $wrench_blog = [
|
||||
'DSN' => '',
|
||||
'hostname' => '10.10.33.60',
|
||||
'username' => 'float',
|
||||
'password' => 'float.user',
|
||||
'database' => 'float_blog',
|
||||
'DBDriver' => 'MySQLi',
|
||||
'DBPrefix' => '',
|
||||
'pConnect' => false,
|
||||
'DBDebug' => (ENVIRONMENT !== 'production'),
|
||||
'charset' => 'utf8',
|
||||
'DBCollat' => 'utf8_general_ci',
|
||||
'swapPre' => '',
|
||||
'encrypt' => false,
|
||||
'compress' => false,
|
||||
'strictOn' => false,
|
||||
'failover' => [],
|
||||
'port' => 3306,
|
||||
];
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
Reference in New Issue
Block a user