예제 #1
0
 /**
  * Constructor
  *
  * @param array $options
  */
 public function __construct($options = array())
 {
     if (!extension_loaded('apc')) {
         throw new Exception('The apc extension must be loaded.');
     }
     parent::__construct($options);
 }
 /**
  * Constructor
  *
  * @param array $options
  */
 public function __construct($options = array())
 {
     if (!extension_loaded('eaccelerator')) {
         throw new Exception('The eAccelerator extension must be loaded.');
     }
     parent::__construct($options);
 }
 /**
  * Constructor
  *
  * @param array $options
  */
 public function __construct($options = array())
 {
     $this->_connection = new Memcache();
     parent::__construct($options);
     foreach ($this->_options['servers'] as $server) {
         $server += array('host' => '127.0.0.1', 'port' => 11211, 'persistent' => true);
         $this->_connection->addServer($server['host'], $server['port'], $server['persistent']);
     }
 }