Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buyOn this page, you will find everything you need to know about the redis add-on.
The Redis add-on caches player data in Redis and keeps it in sync across a network of servers, so keys, cooldowns and win limits stay consistent when a player moves between servers. It sits in front of your database, it does not replace it.
Install it by dropping the JAR into the PhoenixCrates/addons folder. On the first start it generates a redis.yml file in the plugin's folder where you set your connection details.
You still need MySQL configured. Redis is only the cache and locking layer, all data is still written to the database.
While a server is handling a player, it holds a lock on that player in Redis so no other server can write their data at the same time. The lock is refreshed for as long as the player is online, and released when they leave or when the server shuts down.
If a lock cannot be obtained in time, the change is written straight to the database instead, so no rewards or keys are lost.
| Setting | Description |
|---|---|
| Host / Port / Password / Database | The connection details of your Redis server. |
| Connection Pool | The maximum, idle, and minimum number of connections kept open. Default is 8, 8, and 0. |
| Key Prefix | The prefix used for every key the add-on writes. Default is phoenixcrates. |
| Data TTL | How long, in seconds, cached player data is kept. Default is 3600. |
| Lock TTL | How long, in seconds, a player lock stays valid without a refresh. Default is 15. |
| Heartbeat Interval | How often, in seconds, held locks are refreshed. Default is 5. |
| Debug | Logs every cache and lock operation to the console. Disabled by default. |
If the connection to Redis fails on startup, the add-on logs a warning and the plugin keeps running on the database alone.
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy