Books

Best Redis Books for 2026, Plus Memcached and Caching

This post contains affiliate links. If you buy through them, we may earn a small commission at no extra cost to you. Learn more.

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.

Original content from computingforgeeks.com - post 74902

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:

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:

  1. March 2024: Redis announces RSALv2 and SSPLv1 in place of BSD, starting with Redis 7.4
  2. March 2024: the Linux Foundation forms Valkey from Redis 7.2.4, still under BSD
  3. 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 teachesCommand testedRedis 8Valkeyvalkey-bundle
Sorted sets, Lua scriptsZADD, EVALWorksWorksWorks
StreamsXADDWorksWorksWorks
ACL usersACL SETUSERWorksWorksWorks
Redis FunctionsFUNCTION LOAD, FCALLWorksWorksWorks
JSON documentsJSON.SETWorksUnknown commandWorks
Bloom filtersBF.ADDWorksUnknown commandWorks
Search and vector indexesFT.CREATEWorksUnknown commandWorks
Time seriesTS.ADDWorksUnknown commandUnknown command
Vector setsVADDWorksUnknown commandUnknown command
Triggers and functions (JavaScript)TFUNCTIONUnknown commandUnknown commandUnknown command
Tested on the official redis, valkey and valkey-bundle Docker images in October 2026.

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:

BookPublisher, yearPagesRuns onBest forPrice when checked
Ultimate Redis for High-Performance ApplicationsAVA, 2026403Redis 8; Valkey except chapter 13 modulesOperations, scaling, cloudAbout $45
Redis in ActionManning, 2013320Redis 8 and ValkeyData modelling patternsAbout $40
Redis Stack for Application ModernizationPackt, 2023336Redis 8; valkey-bundle for JSON, Bloom filters and core searchJSON, search, vectorsAbout $39
Build Your Own Redis with C/C++, 2nd ed.Self-published, 2025131Your own C/C++ serverInternals, event loopsAbout $30
Source Code Exploration with MemcachedBPB, 2023212Memcached source treeMemcached designAbout $25
Designing Data-Intensive Applications, 2nd ed.O’Reilly, 2026670Any data storeCache and replication designAbout $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.

Ultimate Redis for High-Performance Applications by Karnish Master book cover
Ultimate Redis for High-Performance Applications by Karnish Master. Image: AVA (Orange Education).

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.

Redis in Action by Josiah L. Carlson book cover
Redis in Action by Josiah L. Carlson. Image: Manning.

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.

Redis Stack for Application Modernization 1st Edition by Luigi Fugaro and Mirko Ortensi book cover
Redis Stack for Application Modernization by Luigi Fugaro and Mirko Ortensi. Image: Packt.

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.

Build Your Own Redis with C/C++ 2nd edition by James Smith book cover
Build Your Own Redis with C/C++, 2nd edition, by James Smith. Image: build-your-own.org.

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.

Source Code Exploration with Memcached by Praveen Raj and Prashanth Raghu book cover
Source Code Exploration with Memcached by Praveen Raj and Prashanth Raghu. Image: BPB Publications.

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.

Designing Data-Intensive Applications 2nd Edition by Martin Kleppmann and Chris Riccomini book cover
Designing Data-Intensive Applications, 2nd Edition, by Martin Kleppmann and Chris Riccomini. Image: O’Reilly Media.

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:

BookPublisher, yearWhy we passed
Redis CookbookO’Reilly, 201174 pages, written before Redis Cluster
Redis EssentialsPackt, 2015Before Streams, ACLs and Functions
Learning RedisPackt, 2015Same era, no Streams or ACLs
Mastering RedisPackt, 2016Before Streams, ACLs and Functions
Redis 4.x CookbookPackt, 2018Written for Redis 4
Seven Databases in Seven Weeks, 2nd ed.Pragmatic, 2018One Redis chapter, low stock
Redis Deep DiveBPB, 2021Before 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.

Keep reading

Best Machine Learning Books (2026): Textbooks, Python, Free PDFs AI Best Machine Learning Books (2026): Textbooks, Python, Free PDFs Best C++ and C Programming Books for 2026: Beginner to Advanced Books Best C++ and C Programming Books for 2026: Beginner to Advanced Best System Design Books for Interviews and Architecture in 2026 Books Best System Design Books for Interviews and Architecture in 2026 Best OpenShift Books for Admins and EX280 Candidates Books Best OpenShift Books for Admins and EX280 Candidates Best API Design Books: REST, gRPC and GraphQL Books Best API Design Books: REST, gRPC and GraphQL Install and Configure MongoDB 8 on openSUSE 15 /SLES 15 Databases Install and Configure MongoDB 8 on openSUSE 15 /SLES 15

Leave a Comment

Press ESC to close