Source for file memcached.php
Documentation is available at memcached.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Memcached session storage handler for PHP
* @package Joomla.Platform
* @param array $options Optional parameters.
* @throws RuntimeException
if (!self::isSupported())
throw
new RuntimeException('Memcached Extension is not available', 404);
// This will be an array of loveliness
// @todo: multiple servers
'host' =>
$config->get('memcache_server_host', 'localhost'),
'port' =>
$config->get('memcache_server_port', 11211)
* Register the functions of this class with PHP's session handler
ini_set('session.save_path', $this->_servers['host'] .
':' .
$this->_servers['port']);
ini_set('session.save_handler', 'memcached');
* Test to see if the SessionHandler is available.
* @return boolean True on success, false otherwise.
Documentation generated on Tue, 19 Nov 2013 15:07:48 +0100 by phpDocumentor 1.4.3