1. 1.1 Redishistorical

    Redis is a K-V in-memory database. Compared with Memcached, it has two characteristics: rich data structures and persistence.

  2. 1.2 Redis Installationhistorical

    These notes record Redis source download, build prerequisites, and installation commands from compilation to startup.

  3. 1.3 Redis Persistencehistorical

    Redis Persistence: Redis data is stored in memory. Once it crashes, all data in memory is lost. Therefore, the data in memory needs to be persisted to disk so it can be recovered after a crash.

  4. 1.4 Redis Transactionshistorical

    Redis transactions execute a group of commands in order. These notes examine command grouping, visibility to other clients, and related operations.

  5. 1.5 Redis Pipelinehistorical

    Redis uses a request-response model in which sequential waits create repeated network round trips. These notes explain how pipelining batches commands.

  6. 1.6 Redis Pub/Subhistorical

    Redis Pub/Sub delivers messages through channels from publishers to subscribers. Command examples illustrate the publishing and subscription relationship.

  7. 1.7 Redis Luahistorical

    Redis can execute Lua scripts on the server. These notes use KEYS and ARGV examples to record script execution and debugging.

  8. 1.8 Analyzing Redis with Wiresharkhistorical

    These notes select the local interface in Wireshark and filter by the Redis port to inspect client-server communication.

  9. 1.9 Redis Client Connection Handlinghistorical

    After accepting a connection, Redis creates and configures client state. These notes trace the server's handling step by step.

  10. 1.10 Redis Signal Handlinghistorical

    On a shutdown signal, Redis handles persistence subprocesses and data saving. These notes record graceful shutdown step by step.