Skip to content

Instantly share code, notes, and snippets.

@robwilkerson
Created May 22, 2013 15:15
Show Gist options
  • Save robwilkerson/5628380 to your computer and use it in GitHub Desktop.
Save robwilkerson/5628380 to your computer and use it in GitHub Desktop.
Configures Memcached for use with PHP.
if grep -Fxq 'memcache.hash_strategy="consistent"' /etc/php5/conf.d/memcache.ini; then
echo "Memcache configuration updates have already been made."
else
echo -n "Updating the memcached config..."
echo 'memcache.hash_strategy="consistent"' >> /etc/php5/conf.d/memcache.ini
echo "complete."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment