Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, and sorted sets.
Before using Redis with Laravel, we recommend you to install and use the phpredis PHP extension via PECL.
Although installing the extension is more difficult than installing "user-land" PHP packages, it might improve performance for applications that utilise Redis frequently. If you are using Laravel Sail, the Docker container for your application already has this extension installed.
If you are unable to install the phpredis extension, you may install the predis/predis package via Composer. Predis is a Redis client written entirely in PHP and does not require any additional extensions.