$wgMainCacheType = 'memcached-pecl';

// This currently doesn't set wgMainStash to use memcached,
// since production uses Redis.

$wgMemCachedPersistent = false;
$wgMemCachedTimeout = 0.25 * 1e6;  // 250kμs (a quarter of a second).

$wgMemCachedServers = array( '127.0.0.1:<%= scope['::memcached::port'] %>' );

$wgObjectCaches['memcached-pecl'] = array(
	'class' => 'MemcachedPeclBagOStuff',
	'serializer' => 'php',
	'persistent' => false,
	'servers' => $wgMemCachedServers,
	'server_failure_limit' => 1e9,
	'retry_timeout' => -1
);

$wgMainCacheType = 'memcached-pecl';

// This currently doesn't set wgMainStash to use memcached,
// since production uses Redis.

$wgMemCachedPersistent = false;
$wgMemCachedTimeout = 0.25 * 1e6;  // 250kμs (a quarter of a second).

$wgMemCachedServers = array( '127.0.0.1:<%= scope['::memcached::port'] %>' );

$wgObjectCaches['memcached-pecl'] = array(
	'class' => 'MemcachedPeclBagOStuff',
	'use_binary_protocol' => true,
	'serializer' => 'php',
	'persistent' => false,
	'servers' => $wgMemCachedServers,
	'server_failure_limit' => 1e9,
	'retry_timeout' => -1
);

Use binary protocol with memcached
Use binary protocol with memcached

This solves the missing touch() method in older versions of the client,
with the ASCII protocol.

Bug: T143464
Depends-On: Ib6b22b47fddc3dbad885f86c31eb1571df0438ff
Change-Id: Id87edab853927e656881d1f0246984d32ec09ffb
