Redis

Redis cache, REmote DIctionary Server, Redis database, Redis in-memory database
Redis is an in-memory data structure server that stores data in working memory for lightning-fast reads and writes. You use it to speed up caching, sessions and real-time functions.

What is Redis?

Redis is an open-source in-memory data structure server that stores data in random access memory (RAM) rather than on a hard drive. This enables Redis to retrieve and store data in microseconds rather than milliseconds. Redis is primarily used as a caching layer between your application and your database, for session data, real-time analytics or temporary data that needs to be available at lightning speed. For small and medium-sized companies with an online shop or web application, this means faster loading times and a better user experience.

How Redis stores and retrieves data

Redis works with key-value pairs: you store data under a unique key and retrieve it later using that same key. Think of a product catalogue that you place in Redis. Instead of querying the database with every visit, your website retrieves the product list from cache. Redis supports various data structures such as strings, lists, sets and hashes. This makes it suitable for a variety of applications, from simple caching to complex real-time counters. Because everything is in RAM, read and write operations are extremely fast. The downside is that your working memory is limited and more expensive than disk space.

Why Redis came into being and why it is relevant today

Redis was developed in 2009 by Salvatore Sanfilippo to improve the performance of web applications without complex database architecture. The problem it solved: traditional databases are optimised for reliability and consistency, not for speed. For many applications, a temporary, lightning-fast cache is far more practical than querying the entire database every time. Redis has now become a standard in modern web development, particularly for applications with many concurrent users or real-time functions. In the Dutch SME sector, Redis is mainly used in online shops with dynamic stock levels, SaaS platforms and websites with personalised content.

What Redis delivers for SME companies

For an SME company with an online shop or web application, Redis delivers measurably faster load times. A product page that normally loads in 800 milliseconds can be reduced to 150 milliseconds with Redis caching. This increases conversion and lowers bounce rate. You can also store session data of logged-in users in Redis, so customers don't have to log in every time a server reboots. In web development, we recommend Redis especially for online shops with more than 500 products or platforms with real-time functions such as live stock or notifications. The investment in extra working memory pays off in speed, but only if your application actually bottlenecks database queries. For a simple website with little traffic, Redis is unnecessary.

Applications of Redis

Redis excels in situations where speed is more important than permanent storage. The most common applications revolve around caching, sessions and real-time data. Below you can see where SME companies deploy Redis and when it really adds value.

Caching of database queries and API responses

The most common use case is caching: you temporarily store the result of a heavy database query or external API call in Redis. Suppose you have an online shop with 2,000 products and a filter function by brand, price and category. Every time a visitor filters, the database executes a complex query. With Redis, you store the top 100 most requested filter results in working memory. The second visitor using the same filter gets the result in a fraction of the time. You set an expiry time, say 10 minutes, so the cache refreshes automatically. This reduces the load on your database and speeds up the user experience without having to rewrite code.

Session data and user authentication

With web applications and online shops, you need to track who is logged in, what is in the shopping basket and what preferences a user has. Traditionally, you store session data in the database or in files on the server. With Redis, you place this data in the working memory, making login checks and shopping basket updates lightning-fast. For a B2B platform with 50 concurrent users, this makes the difference between a slow and a smooth experience. Redis also supports automatic expiry: after 30 minutes of inactivity, Redis automatically deletes the session. This is safer and more efficient than manual session cleanup in the database.

Real-time counters and leaderboards

If you want to show live statistics, such as the number of active visitors, stock levels or a leaderboard, Redis is ideal. You can increase or decrease counters in Redis with a single operation, and the result is immediately available to all users. A practical example: an online shop shows 'Still 3 in stock' for a popular product. Every time someone puts the product in the shopping basket, Redis lowers the counter. Other visitors immediately see the updated stock. This works more reliably than a database query running every second. You can also use Redis for A/B testing or event tracking to collect data quickly without burdening your primary database.

When Redis is the right choice and when it is not

Redis is the right choice if your application bottlenecks database queries, has many concurrent users or needs real-time functions. It is not a replacement for your database, but a complement. Redis is not suitable for data that needs to be kept permanently, because in case of a server crash, you will lose everything that is only in RAM. For a simple WordPress blog with 500 visitors a day, Redis is overkill. For an online shop with 5,000 visitors a day and dynamic product pages, it is a smart investment. Note: Redis requires additional working memory and managed. With managed WordPress hosting, Redis is often preinstalled, but you need to configure and monitor it correctly.

Want to apply this in your company? Monkey Vision helps SME entrepreneurs with web design, SEO and smart digital solutions. Plan a no-obligation discovery call and discover what is possible for you.

Plan a discovery call

Frequently asked questions

No, Redis is not a replacement for a database but a complement. A database like MySQL or PostgreSQL stores data permanently on disk and is optimised for reliability and complex queries. Redis stores data temporarily in working memory and is optimised for speed. You use Redis mainly as a cache layer: you temporarily store the result of a heavy database query in Redis so that subsequent visitors get the result at lightning speed. In the event of a server crash or reboot, you lose the data in Redis unless you enable persistence. For permanent storage, you always need a traditional database.

Both are in-memory caching systems, but Redis offers more functionality. Memcached is simpler and slightly faster for pure key-value caching without additional features. Redis supports more complex data structures such as lists, sets and hashes, and has built-in persistence options. For an online shop with session data, shopping basket and real-time stock, Redis is the better choice. For a simple blog that only wants to cache full pages, Memcached suffices. In practice, you see Redis being chosen more often because it is more versatile and well-documented. Most managed WordPress hosting providers offer Redis by default.

First, check whether your hosting provider supports Redis. With managed WordPress hosting, Redis is often already installed but not active. You activate it via a plugin such as Redis Object Cache or W3 Total Cache. After activation, the plugin connects your WordPress installation to the Redis server. Set a maximum cache size and choose what data you want to cache: database queries, objects or entire pages. Test the speed before and after with a tool such as GTmetrix or Google PageSpeed Insights. Note: for an online shop with personalised content, you need to set exceptions, otherwise all visitors will see the same shopping basket content. For bespoke applications, Redis requires more technical knowledge and monitoring.

The best approach depends on your current setup and where your bottlenecks are. Do you have a slow online shop or application but don't know whether Redis is the solution? Schedule a free 30-minute performance scan at Monkey Vision. We analyse live your load times, database queries and server load. You will immediately get three concrete areas for improvement, including an honest assessment of whether Redis adds value for your situation. We also discuss the investment in working memory and the configuration that suits your platform. No sales pitch, just practical advice. More info via web development at Monkey Vision.

About the author

Monkey Vision

Monkey Vision is a full-service digital agency based in London, specialising in web design agency, SEO and AI automation for SMEs. The knowledge base is compiled by our team of online strategists and continuously updated based on current insights.

Publication date: 26-04-2026
Last update: 26-04-2026