This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Establish connection AMQP | |
$connection = new AMQPConnection(); | |
$connection->setHost('172.17.0.2'); | |
$connection->setLogin('guest'); | |
$connection->setPassword('guest'); | |
$connection->setReadTimeout(1); | |
$connection->connect(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MemcachedSessionHandler implements \SessionHandlerInterface { | |
/** | |
* @var Memcached | |
*/ | |
private $memcached; | |
private $timeout = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------------ | |
// | |
// Example: HTTP server | |
// | |
//------------------------------------------------------------------------------ | |
#include <boost/beast/core.hpp> | |
#include <boost/beast/http.hpp> | |
#include <boost/asio.hpp> | |
#include <boost/filesystem.hpp> |