Redis is an open-source in-memory data structure store. You can use it as a database, cache, and message broker. Written in C and works with systems like Linux, *BSD, and OS X while deployment is recommended on Linux System.
You can use Redis with languages like C, C++, Bash, PL/SQL and there are more. Visit this page for a complete list of languages.
Feature of Redis,
- Supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes
- Lua scripting
- Keys with a limited time-to-live
- LRU eviction of keys
- Automatic failover
Install Redis on Ubuntu 20.04
There are two methods to install the Redis on Ubuntu. One using the default repository and another by downloading source code and compiling.
Redis is available in the default repository of Ubuntu. So you can use apt command to install. Login to Ubuntu and open the terminal and run the below command to install Redis on Ubuntu.
1. Refresh package index
sudo apt update
2. Now install Redis using the command given below.
sudo apt-get install redis
This command installs redis-server and redis-tools.
3. Use the below command to install an additional package like redis-sentinel and redis-redisearch using commands given below.
sudo apt install redis-sentinel redis-redisearch
That’s it. Installation is complete.