Redis (REmote DIctionary Server) is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.
It supports data structures such as strings, hashes, lists, sets, range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.
In its simplest form, Redis is a caching system that can be combined with MySQL or MariaDB to optimize the application level speed.
To enable Redis,
2) Find Redis under the Software section and click on it:
3) Select the Max Memory you want to allocate to the Redis instance and click on the button below to start it:
4) Enable the Redis PHP Extension via the PHP Selector tool in cPanel:
You should now be able to select and use Redis, as a caching method for your application.
Redis runs as UNIX socket, which is ~116% faster, as no TCP connection is required to connect to it, so to configure your application properly, you'll need to specify the Redis socket address, as seen in your cPanel:
In most applications, you will need to specify host, port and database to connect to Redis.
The host is the "Redis socket address", the port is always 0, and the database must by an unique Redis database number, which is recommended to protect against data loss.
Important: If you use Redis for caching in other applications (for example, if you host multiple web sites in the same hosting account), the database numbers must be different.
You can have up to 16 Redis databases per hosting account.
Please refer to the following articles which will help you to properly configure Redis within your application:
Should you need any further assistance, please do not hesitate to contact us.