<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
$IpHostAllow =explode('.',get_ip());

if($IpHostAllow['0']=='127')
{
    $host ='127.0.0.1';

}else
{
    $host ='njesfdbslave02.house365.com';

}

// --------------------------------------------------------------------------
// Servers
// --------------------------------------------------------------------------
$memcached['servers'] = array(

	'default' => array(

			'host'			=> $host,
			'port'			=> '1122',
			'weight'		=> '1',
			'persistent'	=> FALSE
						
		)
);

// --------------------------------------------------------------------------
// Configuration
// --------------------------------------------------------------------------
$memcached['config'] = array(

	'prefix' 				=> '',						// Prefixes every key value (useful for multi environment setups)
	'compression'			=> FALSE,					// Default: FALSE or MEMCACHE_COMPRESSED Compression Method (Memcache only).
	
	// Not necessary if you already are using 'compression'
	'auto_compress_tresh'	=> FALSE,					// Controls the minimum value length before attempting to compress automatically.
	'auto_compress_savings'	=> 0.2,						// Specifies the minimum amount of savings to actually store the value compressed. The supplied value must be between 0 and 1.
	
	'expiration'			=> 3600,					// Default content expiration value (in seconds)
	'delete_expiration'		=> 0						// Default time between the delete command and the actual delete action occurs (in seconds) 
	
);


$config['memcached'] = $memcached;

/* End of file memcached.php */
/* Location: ./system/application/config/memcached.php */