Run the JSON chapter of a 2023 Redis book against a plain Valkey server and the first command fails with ERR unknown command 'JSON.SET'. The book isn’t wrong. Redis moved to source-available licences in 2024, and Valkey forked from Redis 7.2.4, the last BSD-licensed release at the time. Redis 8 later folded JSON, search and time series into its core, so the best Redis book for you depends on the server you actually run.
Six books made this list: four Redis titles, a Memcached book and a systems design book for the cache layer around them. We checked editions and prices in Amazon’s catalog, read each publisher’s contents page and companion repository, and ran the command families each book teaches against Redis 8.10.2, Valkey 9.1.2 and the valkey-bundle image in Docker in October 2026.
Pick a Redis Book Fast
Start from what you need to do with Redis this quarter, because no single title covers operations, data modelling and the Redis 8 modules well:
- Running Redis in production today: Ultimate Redis for High-Performance Applications
- Learning to model data in Redis: Redis in Action
- JSON documents, search and vector indexes: Redis Stack for Application Modernization
- How Redis works inside: Build Your Own Redis with C/C++
- Memcached internals: Source Code Exploration with Memcached
- Designing the cache layer itself: Designing Data-Intensive Applications, 2nd Edition
Most readers need two of these: one that teaches the data structures and one that matches the server they deploy. There is no Valkey book on the list because none of the publishers we searched (O’Reilly, Manning, Packt, Apress, Pragmatic, BPB and AVA) has one in Amazon’s catalog yet. The only Valkey books we found are two 2026 listings from a self-publishing imprint, and we left them out.
Check Which Server Your Book Targets
Three changes in two years decide whether a book’s examples still run, and only the two 2026 books here were printed after all three. Read the publication date against this timeline before you buy:
- March 2024: Redis announces RSALv2 and SSPLv1 in place of BSD, starting with Redis 7.4
- March 2024: the Linux Foundation forms Valkey from Redis 7.2.4, still under BSD
- May 2025: Redis 8 adds AGPLv3 and moves JSON, the Query Engine, time series and probabilistic types into core
Sources: the Redis AGPLv3 announcement and the Linux Foundation’s Valkey launch. The practical effect is a three-way split. Core commands still behave the same everywhere, but the module commands that Redis Stack books teach now ship inside Redis 8, ship in Valkey only through separate modules, or don’t exist anywhere current. We ran one command from each family the books on this page teach, on all three servers:
| What the book teaches | Command tested | Redis 8 | Valkey | valkey-bundle |
|---|---|---|---|---|
| Sorted sets, Lua scripts | ZADD, EVAL | Works | Works | Works |
| Streams | XADD | Works | Works | Works |
| ACL users | ACL SETUSER | Works | Works | Works |
| Redis Functions | FUNCTION LOAD, FCALL | Works | Works | Works |
| JSON documents | JSON.SET | Works | Unknown command | Works |
| Bloom filters | BF.ADD | Works | Unknown command | Works |
| Search and vector indexes | FT.CREATE | Works | Unknown command | Works |
| Time series | TS.ADD | Works | Unknown command | Unknown command |
| Vector sets | VADD | Works | Unknown command | Unknown command |
| Triggers and functions (JavaScript) | TFUNCTION | Unknown command | Unknown command | Unknown command |
The Redis 8 column needs one caveat. The module commands come with the official redis Docker image we tested and with source builds that include the bundled modules (BUILD_WITH_MODULES=yes up to 8.8, the release tarball from 8.10 on). On any other build, run MODULE LIST before you open a Stack chapter.
Valkey also makes version checks misleading. Ask a Valkey server for its version and it still reports the Redis release it forked from. A check written for a Redis 7.4 feature such as per-field hash expiry (HEXPIRE) would reject a Valkey 9.1 server, even though Valkey has had HEXPIRE since 9.0:
valkey-cli INFO server | grep -E "^(redis|valkey)_version"
Both fields come back, and only the second one is the server you installed:
redis_version:7.2.4
valkey_version:9.1.2
Match a book or a client library against valkey_version when you run Valkey, and treat redis_version as the fork point it reports.
ERR unknown command ‘JSON.SET’ on Valkey
Plain Valkey ships without the JSON, Bloom and search modules, so every JSON chapter fails on the first command:
(error) ERR unknown command 'JSON.SET', with args beginning with: 'user:1' '$' '{"name":"alice","age":35}'
Use the valkey/valkey-bundle image, or load the valkey-json, valkey-bloom and valkey-search modules on your own build. The bundle loads them at start, so a lab for the book chapters is one container:
docker run -d --name valkey-bundle valkey/valkey-bundle:latest
Confirm which modules the running server loaded with MODULE LIST:
docker exec valkey-bundle sh -c 'valkey-cli MODULE LIST | paste - - - - - - - - | cut -f2,4'
Five modules come back with their versions, three of them for the book chapters:
json 10003
bf 10001
search 66049
ldap 16843263
lua 1
The other two are an LDAP auth module and Lua. The bundle covers less than Redis 8 does, so read its module list as a floor, not a match. The bf module implements the BF.* Bloom filter commands only, so cuckoo filters, count-min sketch, top-k and t-digest still need Redis 8. The search module covers the core commands (FT.CREATE, FT.SEARCH, FT.AGGREGATE, FT.INFO, FT.DROPINDEX and FT._LIST), not the whole Redis Query Engine. Valkey has no official time-series module either, so the TS.* chapters run on Redis 8 only.
ERR unknown command ‘TFUNCTION’ on Redis 8
This one has no fix. Redis Stack’s JavaScript triggers and functions never left preview, and Redis’s own docs now say the preview “has ended and it will not be promoted to GA”. Redis 8 returns the same error a plain Valkey server does:
(error) ERR unknown command 'TFUNCTION', with args beginning with: 'LIST'
Redis Functions in Lua (FUNCTION LOAD, on Redis 7.0 and later and every Valkey release) can stand in for the on-demand JavaScript functions, but not for the triggers. Nothing in Redis 8 or Valkey runs code on a keyspace or stream event, so move that logic into your application and drive it from keyspace notifications or a stream consumer group.
How We Picked These Books
We started from publisher catalogs, not best-seller pages. A plain Amazon search for “redis” returns hundreds of titles, many of them short self-published books from 2025 and 2026. We kept print editions from established publishers, plus one self-published book whose full text is free on its author’s site, so you can judge it before paying.
For each book we read the publisher’s table of contents and, where one exists, its code repository, then tested the command families above. We did not work through every chapter, so what we say a book covers comes from its contents page and its code. Every pick was sold and shipped by Amazon when we checked.
Compare the Six Books
The “Runs on” column comes from the test above, not from the books’ own claims:
| Book | Publisher, year | Pages | Runs on | Best for | Price when checked |
|---|---|---|---|---|---|
| Ultimate Redis for High-Performance Applications | AVA, 2026 | 403 | Redis 8; Valkey except chapter 13 modules | Operations, scaling, cloud | About $45 |
| Redis in Action | Manning, 2013 | 320 | Redis 8 and Valkey | Data modelling patterns | About $40 |
| Redis Stack for Application Modernization | Packt, 2023 | 336 | Redis 8; valkey-bundle for JSON, Bloom filters and core search | JSON, search, vectors | About $39 |
| Build Your Own Redis with C/C++, 2nd ed. | Self-published, 2025 | 131 | Your own C/C++ server | Internals, event loops | About $30 |
| Source Code Exploration with Memcached | BPB, 2023 | 212 | Memcached source tree | Memcached design | About $25 |
| Designing Data-Intensive Applications, 2nd ed. | O’Reilly, 2026 | 670 | Any data store | Cache and replication design | About $57 |
1. Ultimate Redis for High-Performance Applications
Karnish Master’s February 2026 book is written for people who run Redis rather than only call it from code. Its 13 chapters go from data structures and installation through two chapters each on monitoring and replication, then Lua scripting, clustering and sharding, troubleshooting and running Redis on cloud platforms.
The companion repository on AVA’s GitHub shows how current it is. The install chapter adds the packages.redis.io repository without pinning a version, so you get Redis 8 today. The cloud chapter walks through AWS ElastiCache and Google Cloud Memorystore in their consoles, and the last chapter covers Redis Functions, a vector index built with FT.CREATE and JSON documents. Those chapter 13 commands ran on Redis 8 and on valkey-bundle and failed on plain Valkey. The client examples use PHP and Python only, and the publisher page never names the Redis version the text was written against.
Pass on it if you already operate Redis clusters, because most of the 403 pages cover ground you know. The repository is also a set of plain text files per chapter rather than runnable projects, and the book has nothing on Redis 8’s vector sets or on Valkey. It was about $45 when we checked. Check the current price on Amazon.
2. Redis in Action
Josiah Carlson’s 2013 Manning book teaches you to model data in Redis by building features instead of listing commands: caching for a web application, ad targeting, search, a simple social network, then memory reduction, scaling and Lua scripting across its 11 chapters. Redis creator Salvatore Sanfilippo wrote the foreword.
Age shows in two places. The printed listings use Python 2.7, but the author’s GitHub repository carries a Python 3 version with a Docker setup that pulls redis:latest, plus ports to Java, Go, Node.js, Ruby, Clojure and gawk. The bigger gap is what came after it: Redis Cluster arrived in 3.0, Streams in 5.0, ACLs in 6.0 and Functions in 7.0, so the scaling chapter shards by hand in the client and none of those features appear. The core commands it relies on ran unchanged on both Redis 8 and Valkey.
Treat it as the modelling book and get operations from pick 1 or the official docs. Readers who only want a cache in front of a database can pass, since chapter 2 covers that and the rest goes much further. It was about $40 against a $44.99 list price when we checked. Check the current price on Amazon.
3. Redis Stack for Application Modernization
Luigi Fugaro and Mirko Ortensi, both at Redis, wrote the book on the modules that Redis 8 later moved into core: JSON and hash documents, the search and query engine, vector search, time series and probabilistic structures. Each one gets its own chapters, with examples for Java, Python, C#, Go and Node.js clients.
Packt’s repository lists Redis Stack 7.2 or later and RedisInsight 2.36 or later for chapters 4 to 7. On Redis 8 that works without the separate Stack download, because the same commands are in the server. On Valkey the picture splits. valkey-bundle runs the JSON examples, the BF.* Bloom filter commands and the core FT.* search commands, but not the cuckoo filter, count-min sketch, top-k or t-digest examples, and Valkey has no official time-series module. The chapter on triggers and stream processing is the casualty, because the JavaScript feature it teaches was dropped before reaching GA and TFUNCTION fails everywhere.
Buy it when your app stores documents or vectors in Redis. If Redis is only a cache for you, it’s the wrong book, and Valkey users should expect to skip the time series examples and every probabilistic structure except Bloom filters. It was about $39 when we checked. Check the current price on Amazon.
4. Build Your Own Redis with C/C++
James Smith’s book has you write a small Redis-compatible server from scratch, and it shows from the inside why Redis behaves the way it does under load. You build the TCP server, a request-response protocol, an event loop, hash tables, an AVL-tree-backed sorted set, timers, TTL expiry with a heap and a thread pool.
The full text is free on build-your-own.org, along with the source code, so read the first chapters online and buy the paperback only if you want it on your desk. It’s the one self-published book on this list, and the print edition is the second, at 131 pages. Once you’ve written your own event loop, the single-threaded command model and the cost of a slow command in production stop being abstract.
Leave it alone if C makes you uncomfortable or if you need Redis working this week, because it teaches no operations at all. The paperback was about $30 when we checked. Check the current price on Amazon.
5. Source Code Exploration with Memcached
Memcached has few books. Besides this one, Amazon’s catalog lists a 2009 Wrox title on Perl, Memcached and MySQL in scarce stock, a few short academic monographs and a generic “complete guide” at about $94. Praveen Raj and Prashanth Raghu’s December 2023 book from BPB reads the Memcached source: the event loop, server initialization, LRU cache, slab management, authentication, protocol definitions, background processes, the proxy server and external storage, then large-scale use.
Slab allocation is the reason to read it. Memcached stores items in fixed-size chunks, so a workload whose value sizes drift can waste memory or evict early even when the server looks half empty, and the slab chapter explains why. BPB does not say which Memcached release the text follows, so check the code it quotes against the current source.
It is not an operations manual. To get Memcached running, our guide to installing Memcached on Ubuntu is quicker. It was about $25 when we checked. Check the current price on Amazon.
6. Designing Data-Intensive Applications, 2nd Edition
Martin Kleppmann and Chris Riccomini’s second edition, printed in March 2026, is not a Redis book, and that is why it is here. The hard problems with a cache are replication lag, sharding and stale reads, and this book explains those trade-offs for every kind of data system, including the consistent hashing that the sharding chapter covers.

Read it when you’re deciding whether Redis should be a cache, a primary store or a queue, because each role needs different persistence and failover settings. It pairs with our guide to running Redis with Sentinel for high availability, which shows the failover side in practice.
At 670 pages it’s a long read with no Redis commands in it, so it will not help with a deployment due Friday. It was about $57 against a $69.99 list price when we checked. Check the current price on Amazon.
Skip These Older Redis Books
Amazon still sells these new, and several show up above the picks in a plain search. All of them predate at least Redis Functions, and most predate Streams and ACLs, so their examples teach habits Redis has since replaced:
| Book | Publisher, year | Why we passed |
|---|---|---|
| Redis Cookbook | O’Reilly, 2011 | 74 pages, written before Redis Cluster |
| Redis Essentials | Packt, 2015 | Before Streams, ACLs and Functions |
| Learning Redis | Packt, 2015 | Same era, no Streams or ACLs |
| Mastering Redis | Packt, 2016 | Before Streams, ACLs and Functions |
| Redis 4.x Cookbook | Packt, 2018 | Written for Redis 4 |
| Seven Databases in Seven Weeks, 2nd ed. | Pragmatic, 2018 | One Redis chapter, low stock |
| Redis Deep Dive | BPB, 2021 | Before Redis 7 Functions and the license split |
Redis in Action is older than most of them and still made the list, because its value is the modelling method rather than the commands. These books mostly teach commands, and the official docs teach the current ones better.
Pick by the Server You Run
Match the purchase to the server you deploy, because the module split decides how much of each book runs for you:
- Redis 8 with its modules (the official Docker image): Ultimate Redis, then Redis Stack
- Plain Valkey: Redis in Action, plus Ultimate Redis up to chapter 13
- valkey-bundle: Ultimate Redis, plus the JSON, Bloom filter and core search chapters of Redis Stack
- Memcached: the BPB book for design, our install guide for setup
- A new cache layer: Designing Data-Intensive Applications first
If you’re still choosing between the two servers, our Valkey vs Redis comparison covers the licence and migration side. The install guides for Redis on Ubuntu, Redis on Rocky Linux and Valkey on Ubuntu give you a lab to read the books against. Add Prometheus and Grafana monitoring before anything reaches production, since none of these books replaces watching your own eviction and latency numbers.




