Skip to content

Conversation

@cgomboz
Copy link

@cgomboz cgomboz commented Aug 28, 2013

Added support to allow for multiple servers and set memcached options.

$hosts = array( 'host1', 'host2' );
$ports = array( 11211, 11212 );
$options = array( Memcached::OPT_DISTRIBUTION => Memcached::DISTRIBUTION_CONSISTENT,
Memcached::OPT_LIBKETAMA_COMPATIBLE => true );

EpiSession::employ( EpiSession::MEMCACHED, $hosts, $ports, false, 86400, $options );

Also supports array of 1 -> N:

EpiSession::employ( EpiSession::MEMCACHED, $hosts );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants