> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring Magento to use Redis

> Learn how to boost your site's performance by configuring Magento with Redis. Requires a VPS or Dedicated Server.

This article describes how to configure Magento 2 to use [Redis](https://redis.io/).

Redis is an open-source memory object caching system that websites can use to help accelerate page load times. Redis works by caching in RAM frequently accessed data, such as the results of API calls, database calls, and more.

<Note>
  * Redis is currently enabled on Turbo shared, Turbo reseller, Managed VPS, and Managed Dedicated server accounts.

  * If you have an unmanaged VPS, you have full root access and can install and configure Redis yourself.

  * Redis is not supported on non-Turbo shared hosting accounts at this time.

  🚧 Important

  If you have a managed hosting account, make sure Redis is enabled before you follow the procedures below. For more information about using Redis on managed hosting accounts, please see [this article](/docs/using-redis-on-managed-servers).
</Note>

## Enabling Redis for Magento 2

To enable Redis for Magento 2, follow these steps:

1. Log in to your account [using SSH](/docs/using-ssh-secure-shell).

2. At the command prompt, change to the directory where you installed Magento (for example, type `cd ~/public_html` ).

3. Type the appropriate commands for your hosting account:

* If you have a **Managed VPS or Dedicated server**, type the following commands:

```bash theme={null}
bin/magento setup:config:set --cache-backend=redis
bin/magento setup:config:set --page-cache=redis
bin/magento setup:config:set --session-save=redis
```

* If you have a **Turbo shared or reseller account**, type the following commands. Replace ***username*** with your account username:

```bash theme={null}
bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=/home/username/.redis/redis.sock
bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=/home/username/.redis/redis.sock
bin/magento setup:config:set --session-save=redis --session-save-redis-host=/home/username/.redis/redis.sock
```

<Note>
  When you run the last command, you may be prompted to overwrite the existing configuration for\
  **session-save** . If this occurs, type\
  **y** and then press Enter.
</Note>

4. Redis is now enabled for Magento.

<Tip>
  For additional information about how to configure Redis with Magento 2, please visit:

  * [https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-pg-cache.html](https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-pg-cache.html)

  * [https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-session.html](https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-session.html)
</Tip>

## More information

* For more information about Redis, please visit [https://redis.io](https://redis.io).

* To view the official Magento documentation, please visit [https://docs.magento.com](https://docs.magento.com).

## Related articles

* [Configuring Magento to use memcached](/docs/configuring-magento-to-use-memcached)

* [Using Redis on managed servers](/docs/using-redis-on-managed-servers)

* [Do you support Redis?](/docs/do-you-support-redis)
