# Redis Sync

<figure><img src="../.gitbook/assets/integrations/redis-sync.png" alt="" width="563"><figcaption><p>Redis (Redis Sync)</p></figcaption></figure>

> **Info:**
Every option on this page is in config.yml and **Editor > Integrations**. A change made in the editor reconnects straight away.

## Redis Sync

Servers sharing one MySQL, MariaDB or PostgreSQL database never lose a change, but each keeps its online players' balances in memory. With Redis, every server announces each change it makes, and the others reload that player's balances straight away; after an expiry, every player's. Without it, a player's balance is read from the database when they join a server, so a change made elsewhere while they stay on one server is not shown there straight away.

Redis is recommended for every network. Without it, another server can show an offline player's balance up to 30 seconds old, and a change made on a server with nobody online does not reach the player's own server until they rejoin. Neither creates money: the database stays the truth.

Every server needs the same Redis host and channel.

## Redis Host

The address of the Redis server.

<figure><img src="../.gitbook/assets/integrations/redis-host.png" alt="" width="563"><figcaption><p>Redis (Redis Host)</p></figcaption></figure>

## Redis Port

The port of the Redis server, from 1 to 65535.

<figure><img src="../.gitbook/assets/integrations/redis-port.png" alt="" width="563"><figcaption><p>Redis (Redis Port)</p></figcaption></figure>

## Redis Password

The password of the Redis server. Leave it empty for none.

<figure><img src="../.gitbook/assets/integrations/redis-password.png" alt="" width="563"><figcaption><p>Redis (Redis Password)</p></figcaption></figure>

## Redis Channel

The channel every server listens on.

<figure><img src="../.gitbook/assets/integrations/redis-channel.png" alt="" width="563"><figcaption><p>Redis (Redis Channel)</p></figcaption></figure>

## Redis SSL

Connects to Redis over SSL.

<figure><img src="../.gitbook/assets/integrations/redis-ssl.png" alt="" width="563"><figcaption><p>Redis (Redis SSL)</p></figcaption></figure>

## Redis Status

Whether this server is connected to Redis right now. It is read when the screen opens.

<figure><img src="../.gitbook/assets/integrations/redis-status.png" alt="" width="563"><figcaption><p>Redis (Redis Status)</p></figcaption></figure>

Source: https://www.phoenixplugins.com/docs/phoenix-currencies/features/redis-sync