Memcache and Redis Installation

Memcache


Installation:

brew install memcached

If you get error message during linking:

brew link -f memcached 

To Start Memcache

memcached -vv

Redis


Installation :

wget http://redis.googlecode.com/files/redis-2.6.9.tar.gz
tar xvzf redis-2.6.9.tar.gz
cd redis-2.6.9
make
sudo mv src/redis-server /usr/bin
sudo mv src/redis-cli /usr/bin
mkdir ~/.redis
touch ~/.redis/redis.conf

Starting Redis Server

$cd /Users/zepho/temp/redis-2.6.9
$redis-server

Interact with Redis:

redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

Reference


Installing Redis on Mac OS


Related Articles


Ace the Technical Interview

  • Easily find the gaps in your knowledge
  • Get customized lessons based on where you are
  • Take consistent action everyday
  • Builtin accountability to keep you on track
  • You will solve bigger problems over time
  • Get the job of your dreams

Take the 30 Day Coding Skills Challenge

Gain confidence to attend the interview

No spam ever. Unsubscribe anytime.