Redis Essentials: A Beginner's Guide cover

Redis Essentials: A Beginner's Guide

No rating yet
Chapters
12
ISBN
9787115312945

Tags

Summary

Redis Essentials: A Beginner's Guide is one of the earlier original Chinese technical books to systematically introduce Redis, written by Li Zihua (online handle Luin) and published by Posts & Telecom Press in May 2013. Aimed at complete beginners, it opens with "what Redis is and why use it," first covering its history and core traits: a key-value store, in-memory storage with persistence, rich data structures and commands, and a simple, stable implementation. It then moves to hands-on work: installation on POSIX, macOS, and Windows, plus starting and stopping the server, configuration files, multiple databases, and using the command-line client. The main body walks through Redis's five classic data types—strings, hashes, lists, sets, and sorted sets—one by one, each organized as introduction, commands, practice, and command miscellany, and tied together through a blog system built step by step so readers can apply what they learn to their own projects. Advanced chapters cover transactions and WATCH, expiration and caching, rate limiting, SORT, task queues and publish/subscribe, pipelining, and saving storage space, with client libraries in PHP, Ruby, Python, and Node.js demonstrating real integration and calls. Fictional characters "Xiaobai and Teacher Song" talk through difficult points in dialogue; the language is plain, the examples dense, and the book suits developers in China as their first Redis book.

Editor's review

在国内 Redis 中文资料还很稀缺的年代,这本书填补了一块实实在在的空白:它不是翻译的参考手册,而是一本按“任务驱动”写成的入门教程。作者的写法很讨巧——先用一个博客系统做主线,把字符串、散列、列表、集合、有序集合五种类型放在真实需求里讲,读者不会停留在背命令的层面;再往下走到事务、过期与缓存、任务队列、发布/订阅、管道这些实际开发中绕不开的话题,节奏自然。多语言客户端一章覆盖 PHP、Ruby、Python、Node.js,照顾到不同技术栈的读者。书里的“小白与宋老师”对话虽然朴素,却把初学者最常卡住的地方单独拎出来解释。需要注意,本书初版内容对应较早期的 Redis 版本,Redis 之后新增的流类型、集群方案演进等并未涵盖;如果希望跟上 Redis 3.0 到 6.0 的变化,可改读同一作者的第三版。作为系统建立 Redis 心智模型的第一本书,它依然值得推荐。

Who it's for

A good fit for

  • 刚接触 Redis、希望从零系统建立知识框架的后端开发新手
  • 需要为项目引入缓存、队列、计数器等能力的中初级工程师
  • 使用 PHP、Ruby、Python 或 Node.js,想找客户端接入示例的开发者
  • 数据库或运维方向的在校学生,作为 NoSQL 入门的补充读物

Not a good fit for

  • 已熟练使用 Redis、需要源码级原理与高并发调优的资深工程师
  • 专门研究 Redis 模块开发或自研分布式存储的读者
  • 只想要新版命令速查手册、不愿动手实践的读者

Reading tips

  1. 务必边读边在本机装好 Redis,第2章配置完成后直接进入命令行练习,效果远好于只看代码。
  2. 第3章建议跟做书中的博客系统案例,把每种数据类型都亲自实现一遍再继续。
  3. 技术栈与书中不同的读者,可先略读第5章,等需要接客户端时再回头对照。
  4. 读完后对照官方文档核对命令语法与版本差异,流类型、集群等后续特性另行补充学习。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Chapter 1 Introduction (History and Development, Features)
  2. Chapter 2 Preparation (Installation, Starting and Stopping, Command-Line Client, Configuration, Multiple Databases)
  3. Chapter 3 Getting Started (Warm-Up; Strings, Hashes, Lists, Sets, Sorted Sets)
  4. Chapter 4 Advanced (Transactions, Expiration, Sorting, Messaging, Pipelining, Saving Space)
  5. Chapter 5 Practice (PHP, Ruby, Python, Node.js with Redis)
  6. Chapter 6 Scripting
  7. Chapter 7 Persistence
  8. Chapter 8 Clustering
  9. Chapter 9 Administration
  10. Appendix A Redis Command Properties
  11. Appendix B Configuration Parameter Index
  12. Appendix C CRC16 Implementation Reference

FAQ

这本书有第2版、第3版,该选哪个版本?
第2版2015年出版,第3版2021年出版并更新了 Redis 3.0 到 6.0 的功能,新增流类型等内容。现在入手建议选第3版;如果手上的就是初版或第2版,也仍可作为入门教材,只是命令与版本说明需对照官方文档补充。
零基础、没学过 Linux,能读懂吗?
可以。本书不要求读者具备 Redis 背景知识,安装与命令行操作都有步骤说明。不过若有 Web 后端开发和 Linux 系统使用经验,阅读与动手会更顺畅,遇到命令行不熟悉的操作可先补一点 Linux 基础知识。
书中的示例用什么编程语言?
Redis 命令本身不依赖具体语言,书中用 PHP、Ruby、Python、Node.js 四种语言演示客户端库的安装与调用,并各配一个小实践案例,按自己熟悉的语言跟做即可。
这本书能替代 Redis 官方文档吗?
不能。本书定位是入门教程,重在帮助读者理解 Redis 是什么、怎么用,命令覆盖与版本更新不如官方文档全面及时。建议以本书建立框架,实际开发时以官方文档为准核对命令与参数。

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