add memcached/memory connection

This commit is contained in:
ghost 2023-09-14 20:39:36 +03:00
parent bf759f9dd7
commit 26d2a06b9a

View File

@ -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);