2.2.3. Redis
Payment
On a virtual hosting service is paid daily with personal balance, on the businesshosting included in the fare.Redis (REmote DIctionary Server) is a fast data store like "key-value" in RAM. Redis, due to its simplicity and high speed of work, is used to organize caching, session management, systems "subscriberpublisher" and other tasks requiring maximum productivity. Unlike Memcache(d)Redis allows you to store not only strings, but also arrays, dictionaries, non-repetitive sets, sorted sets, and other data structures. It also supports transactions (when either all operations are performed sequentially, or none), batch processing of commands (first a series of commands are executed, then a series of results are obtained)
Memory allocation
Important points:
- Memory allocated for everything hosting account without division by sites.
- For business hosting. You can allocate no more than 1/4 of the tariff memory. The limitation is due to the fact that part of the memory is needed for the scripts to work. If there is not enough allocated memory, the oldest data in the cache will be overwritten.
Customization
Notes:
- PHP module is available on hosting by default PhpRedis.
- You can check the operation of Redis test script.
To connect to the Redis server, use the socket address from the block "Redis":
Instructions for setting up Redis in various CMS and frameworks:
Statistics
Redis usage statistics are displayed in the section "Redis". The information is updated each time the page is opened.
Clearing the cache
There are several ways to clear the Redis cache:
- Through the control panel — open the section "Redis" and press "Clear cache" in the block statistics.
- Across Telegrambot — in the bot menu select "Hosting → Hosting account → your hosting account → Clear cache → Clear Redis cache".