15 lines
319 B
PHP
15 lines
319 B
PHP
|
<?php
|
||
|
|
||
|
namespace acs;
|
||
|
|
||
|
use Acast\Http\Console;
|
||
|
use Acast\Http\Model;
|
||
|
use Acast\Http\Server;
|
||
|
|
||
|
function init_database()
|
||
|
{
|
||
|
if (!Server::$memcached->addServer(_MEMCACHED_HOST, _MEMCACHED_PORT))
|
||
|
Console::warning('Failed to add memcached server.');
|
||
|
//Init mysql connection.
|
||
|
Model::config(_MYSQL_CONFIG);
|
||
|
}
|