What is Redis Server
Redis is an in-memory object cache. Instead of WordPress repeatedly asking the database for the same information, Redis can keep frequently used data in RAM and return it much faster.
You may also see Memcached mentioned as an alternative. Both provide object caching, but Redis offers more features and flexibility and is particularly useful where a site has more demanding caching requirements.
WordPress lists a persistent object cache as an optional extra in Site Health. It isn't required for WordPress to work, but it can reduce database work and improve performance. Because Redis stores its active data in memory, available RAM is an important consideration.
This can be particularly useful on WooCommerce sites, where there is often more database activity and memory usage than on a simple brochure-style WordPress site.
You don't necessarily need an expensive managed Redis service. If you already have a VPS, server or suitable home server, running your own Redis instance can be a relatively inexpensive way of adding Redis to WordPress — and it is also a useful learning exercise.
This is a practical reference based on getting a remote Redis server working with a WordPress plugin, including some of the less obvious problems that can occur.