Apache Redis is an open source in memory cache store, used as a database cache and message broker. Redis is rich in data structures like strings, hashes, lists, sets, sorted sets with range queries,
bitmaps, hyperlog logs and geospatial indexes with radius queries. Apart from that Redis provides built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk
persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
Apache Redis standalone setup
Download and Installation
Redis can be installed in a stand-alone, sentinel or clustered mode, here we will see how to download and install a standalone redis with one instance only.
Install Compiler for c
$sudo apt-get update
Download, extract and compile Redis with:
$sudo apt-get install build-essential
$sudo apt-get install tcl8.5
$ wget http://download.redis.io/releases/redis-3.2.5.tar.gz
$ tar xzf redis-3.2.5.tar.gz
$ cd redis-3.2.5
The binaries that are now compiled are available in the src directory. Run Redis with:
$ src/redis-server &
You can interact with Redis using the built-in client:
redis> set key value
redis> get key
That's it for this article, we have seen a little about redis, implementation and few commands. In upcoming articles we will see more about Useful Commands,
Integration with Java, Cluster and Sentinel setup.