Redis in Practice cover

Redis in Practice

Rating 3.8
Chapters
23
Series
Database Technology Series
ISBN
9787111636526

Tags

Summary

Following Redis Design and Implementation and his translation of Redis in Action, Huang Jianhong's Redis in Practice is a practical technical reference that systematically lays out the core features and everyday commands of Redis 5.0. The book has three parts and twenty chapters. Part One, "Data Structures and Applications," introduces Redis's nine core data structures one by one—strings, hashes, lists, sets, sorted sets, HyperLogLog, bitmaps, geospatial indexes, and streams—and weaves in, alongside detailed command explanations, several examples of building real applications with Redis. Part Two, "Additional Features," covers the capabilities built on top of those data structures: database management, automatic expiration, pipelining and transactions, Lua scripting, persistence, publish/subscribe, and modules. Part Three, "Multi-Machine Features," presents replication, Sentinel, and clustering, helping readers understand how to scale Redis's read/write performance and choose the right scaling approach for their actual scale. The book includes detailed explanations of more than 180 commands, over 50 usage examples, and appendices on installing Redis and redis-py. Designed to be both lookup-friendly and immediately useful, it works as a roadmap for systematically learning Redis and as a desk reference to flip through during day-to-day development and operations.

Editor's review

很多 Redis 书是「读完就懂了,用的时候还得查文档」,这本书正好反过来:它先把命令讲清楚,再把命令放进能跑通的场景里,最后把常用命令做成可以随手翻的参考。作者黄健宏是国内 Redis 圈子里少有的「既读源码、又写文档、还写书」的人:他写了《Redis设计与实现》,翻译了《Redis实战》,长期维护在线中文版《Redis命令参考》,所以他知道哪条命令的参数容易踩坑、哪个数据结构在实际业务里真正有用。全书覆盖 Redis 5.0 的九种数据结构、七项附加功能与三项多机功能,180 多条命令详解配 50 多个示例,讲持久化、复制、Sentinel、集群时不只给配置项,也讲清楚「什么时候该用哪一种扩展方式」。对工程师来说,它最大的价值是省时间:需要精确知道命令返回值、边界条件和常见误区时,翻几页就能找到答案,并且答案背后带着作者自己的实践经验。

Who it's for

A good fit for

  • 已经会用 Redis 基本命令、希望系统补齐知识结构的后端开发者
  • 需要频繁查证命令参数、返回值与边界情况的一线工程师
  • 从事缓存、消息、排行榜等业务开发,想把 Redis 用得稳的中级程序员
  • 准备系统学习 Redis 5.0 与集群、Sentinel 等机制的技术人员

Not a good fit for

  • 完全没有编程基础、希望从零开始入门的读者
  • 只想通过阅读理解 Redis 源码内部实现原理的读者
  • 主要诉求是运维监控平台与故障排查案例的资深运维工程师

Reading tips

  1. 建议在本地装一个 Redis 5.0 环境,边读边敲命令,书中的示例尽量自己复现一遍。
  2. 第一遍按「数据结构—附加功能—多机功能」顺序通读建立框架,之后把它当手册按需查阅相关章节。
  3. 读多机功能部分前,先弄清业务的数据量与读写压力,再对照复制、Sentinel、集群的适用场景做取舍。
  4. 搭配作者维护的中文《Redis命令参考》一起用,遇到新版本命令差异时以官方文档为准。

About the publisher

China Machine Press China · Founded in 1950

In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.

Contents

  1. Preface
  2. Chapter 1 Introduction
  3. Chapter 2 Strings
  4. Chapter 3 Hashes
  5. Chapter 4 Lists
  6. Chapter 5 Sets
  7. Chapter 6 Sorted Sets
  8. Chapter 7 HyperLogLog
  9. Chapter 8 Bitmaps
  10. Chapter 9 Geospatial Coordinates (GEO)
  11. Chapter 10 Streams
  12. Chapter 11 Databases
  13. Chapter 12 Automatic Expiration
  14. Chapter 13 Pipelines and Transactions
  15. Chapter 14 Lua Scripting
  16. Chapter 15 Persistence
  17. Chapter 16 Publish and Subscribe
  18. Chapter 17 Modules
  19. Chapter 18 Replication
  20. Chapter 19 Sentinel
  21. Chapter 20 Cluster
  22. Appendix A Installing Redis
  23. Appendix B Installing redis-py

FAQ

这本书适合零基础的读者吗?
不太适合。书中直接进入命令与数据结构的讲解,默认读者至少懂一门编程语言、了解键值存储的基本概念。零基础读者建议先读《Redis入门指南》,再回来看这本。
这本书讲的是哪个 Redis 版本?
主要基于 Redis 5.0,涵盖流(Stream)等新特性。书中部分命令的返回细节或默认行为在更高版本中可能有变化,实际操作时请以官方文档为准。
它和《Redis设计与实现》有什么区别?
《Redis设计与实现》讲的是 Redis 内部如何实现,偏源码与原理;这本《Redis使用手册》讲的是怎么用,重点是命令、参数、返回值和应用示例,两本正好互补。
书中的示例代码是什么语言写的?
示例以 Redis 命令为主,附录介绍了 redis-py(Python 客户端)的安装与使用,因此示例更贴近 Python 环境的读者,但概念与命令本身与语言无关。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category