# Configuring Magento to use Redis

> Configure Magento to use Redis for its cache and sessions, so data is served from memory and your store loads faster.

Source: https://helpcenter.ruachost.com/apps/magento/configuring-magento-to-use-redis/

Redis is an open‑source, in‑memory data store that can be used as a caching system to accelerate Magento performance. By storing frequently accessed data in RAM, Redis reduces database queries and speeds up page loads. On **ruachost.com**, Redis availability depends on your hosting plan. [Contact Ruachost support](https://dashboard.ruachost.com/submitticket.php) to confirm it is enabled for your account.

## Why Use Redis with Magento?

- Faster page load times by caching sessions, API calls, and database queries
- Reduced server load and improved scalability
- Enhanced customer experience with smoother navigation

## Steps to Configure Magento with Redis

Step 1: Confirm Redis Availability

- Where Redis is enabled, it is available via a socket:

```bash
/home/username/.redis/redis.sock
```

If this socket does not exist on your account, Redis is not enabled for your plan.

Step 2: Configure Magento 2 to Use Redis\
Log in to your hosting account via SSH and navigate to your Magento installation directory:

Run the following commands (replace with your account username):

If prompted to overwrite existing configuration, type y and press Enter.\
✅ Redis is now enabled for Magento on your account.

Step 3: Verify Redis Integration

- Clear Magento cache:

  ```bash
  bin/magento cache:flush
  ```

- Test your site’s performance
- Check Redis logs to confirm caching activity

## Important Notes

- Always back up your site before making configuration changes
- Redis must be installed and running on the server before Magento can use it
- If issues occur, disable Redis temporarily and troubleshoot
- For more details, see the official Magento Redis documentation
