Added redis to load

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-12 09:50:27 -04:00
parent 9f9d1fa916
commit 5adc1b46bf
7 changed files with 124 additions and 5 deletions
+4
View File
@@ -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');
+4
View File
@@ -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');
+4
View File
@@ -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');
+6 -5
View File
@@ -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',
];
/**
+19
View File
@@ -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();