Storages Methods

Redis support is currently in beta. If you encounter any bugs, please report them on GitHub (under Issues).

To apply the MySQL and Redis configuration, a server restart is required.

If an error occurs on startup, it is likely due to incorrect MySQL or Redis connection values.

By default config you have :

mysql:
  enabled: false
  host: localhost
  port: 3306
  database: wfly
  username: root
  password: root

redis:
  enabled: false
  host: 127.0.0.1
  port: 6379
  password: ''
  database: 0
  timeout: 2000
  pool:
    maxTotal: 8
    maxIdle: 8
    minIdle: 0
  • If neither MySQL nor Redis is enabled, the plugin will use SQLite for storage (database.db in plugins/wFlyV2/).

  • If MySQL is enabled and Redis is disabled, the plugin will use MySQL to synchronize your data across all servers.

  • If Redis is enabled and MySQL is disabled, the plugin will use Redis as a database. Make sure persistence is enabled in Redis, otherwise your data may be lost!

  • If both Redis and MySQL are enabled, the plugin will use Redis as a cache (RAM storage) while MySQL serves as the main database.

Last updated