Browse Source

add memcached/memory connection

main
ghost 1 year ago
parent
commit
26d2a06b9a
  1. 12
      src/config/bootstrap.php

12
src/config/bootstrap.php

@ -60,6 +60,18 @@ try {
$sphinx = new Sphinx(SPHINX_HOST, SPHINX_PORT); $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) { } catch(Exception $e) {
var_dump($e); var_dump($e);

Loading…
Cancel
Save