Created
May 22, 2013 15:15
-
-
Save robwilkerson/5628380 to your computer and use it in GitHub Desktop.
Configures Memcached for use with PHP.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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