How to install Redis
We aggregate and tag open source projects. We have collections of more than one million projects. Check out the projects section.
Redis is an open source (BSD licensed), in-memory data structure store, used also as a database cache and message broker.
It is written in ANSI C and works in all the operating systems. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. This article explains about how to install Redis.
To install in Linux environment, download the tar ball and compile it. The instructions are available here.
To install in Windows, the redis package can be downloaded from the following links
Once you install, you will find following binaries in the installed location.
- redis-server is the Redis Server itself.
- redis-sentinel is the Redis Sentinel executable (monitoring and failover).
- redis-cli is the command line interface utility to talk with Redis.
- redis-benchmark is used to check Redis performances.
- redis-check-aof and redis-check-dump are useful in the rare event of corrupted data files.
Start the server
Connect to the server and check if it is responding.
redis-cli ping // uses default localhost and redis port 6379
redis-cli -h hostname -p port ping
Redis server communicated with protocol called RESP (Redis Serialization Protocol). It connects to server using TCP connections and work with request and response model. There are many clients available for each language to connect and work with redis.
To find embedded technology information about MCU, IoT, AI etc Check out embedkari.com.