mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-28 15:44:24 +00:00
add memcached/memory connection
This commit is contained in:
parent
bf759f9dd7
commit
26d2a06b9a
@ -60,6 +60,18 @@ try {
|
||||
|
||||
$sphinx = new Sphinx(SPHINX_HOST, SPHINX_PORT);
|
||||
|
||||
} catch(Exception $e) {
|
||||
|
||||
var_dump($e);
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
// Connect memcached
|
||||
try {
|
||||
|
||||
$memory = new Yggverse\Cache\Memory(MEMCACHED_HOST, MEMCACHED_PORT, MEMCACHED_NAMESPACE, MEMCACHED_TIMEOUT + time());
|
||||
|
||||
} catch(Exception $e) {
|
||||
|
||||
var_dump($e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user