Skip to content

Redis ​

Redis gives your hosting account its own in-memory cache for object and session caching. It is private to your account: your own PHP, cron, and SSH processes can reach it, and nothing else on the server can.

The Redis page with a running instance and its connection details

Overview ​

URL: /client/redis

Open it from Databases > Redis in the sidebar.

The page appears when your hosting plan includes Redis. If your plan does not, the page states that and no instance can be started. Your provider sets how much memory the instance may use on the hosting plan.

Turning it on ​

Enable Redis starts the instance. The confirmation names the memory your plan allows.

The form offers one option, Also require a password. The connection is already private to your account, so a password is not needed for security; some applications insist on one anyway. When you tick it, the password is generated for you and shown on this page.

State ​

Once the instance runs, the page reports:

FieldWhat it shows
StateRunning or Stopped.
MemoryHow much memory the cache currently holds.
KeysHow many keys are stored.
UptimeHow long the instance has been running.

Connection details ​

The Connection details section holds what an application needs:

  • Socket - the socket file your application connects to.
  • Port - shown as (unix socket, no TCP port). There is no port to connect to, and no network exposure.
  • Password - the generated password, or a note that none is set because the socket is private to your account.

How to use it below the table carries ready-to-paste configuration for the common cases:

  • WordPress with the LiteSpeed Cache plugin, under Object Cache.
  • WordPress with the Redis Object Cache plugin, for wp-config.php.
  • Laravel, for the .env file.
  • Plain PHP, using the Redis class.

WordPress object cache ​

The WordPress object cache section lists the WordPress installations found on your account and the cache state of each one:

  • Connected - the site uses this Redis instance. Disconnect stops it.
  • Plugin active, cache off, Plugin inactive, or Plugin not installed - the site is not caching yet. Connect points it at this instance, installing and activating the plugin when it is missing.
  • PHP redis extension not enabled - the site's PHP version cannot talk to Redis yet. Change the domain's PHP settings, then connect the site.

When no WordPress installation is found on the account, the section says so.

Actions ​

  • Restart - restart the instance. Cached data is rebuilt by your applications on the next requests.
  • Flush all keys - remove every key. Applications rebuild their cache on the next request. You are asked to confirm.
  • Disable Redis - stop and remove the instance together with its data. Applications still configured to use it fall back to no cache, or fail to connect, until you point them elsewhere. You are asked to confirm.