Learn how to install Redis on Linux with this simple tutorial. Redis is an open-source database, precisely, it's an in-memory data structure store that can be used as a database, cache & message broker. It does not possess the limits offered by the relational database & can be used to store a vast amount of data, with support for a number of data structures like strings, hashes, lists, sets, sorted sets, bitmaps, hyper logs, etc.
Installing and configure Redis
Step 1. Login to your server via terminal or putty if you are using the window.
Step 2. Once login successfully runs below commands.
sudo apt update
sudo apt install redis-server
Step 3. Check if Redis is installed successfully using the below command
sudo systemctl status redis
Step 4. Now we can check Redis server is functioning correctly, we can use redis-cli, Redis CLI is a command-line tool for Redis.
Step 5. Now if you want to restart the Redis server run this command
sudo systemctl restart redis
Or, if you want to clear the Redis cache you can run this command
Original Post:- https://trinitytuts.com/install-and-configure-redis-cache-in-php-web-application/