Skip to content

Instantly share code, notes, and snippets.

View phptek's full-sized avatar

Russ Michell phptek

View GitHub Profile
@shoaibali
shoaibali / _config.php
Last active August 4, 2016 03:24
SilverStripe memcached multiple servers
<?php
// Other useful changes and commands
// watch "echo stats | nc 127.0.0.1 11211"
// session.save_handler = memcache
// session.save_path = "tcp://server1:11211,tcp://server2:11211"
// $cache = SS_Cache::factory('foo');
// $cache->clean(Zend_Cache::CLEANING_MODE_ALL);
if (defined('MEMCACHE_SERVER_1') && defined('MEMCACHE_PORT_1')) {
$servers = array(