Tag

Key Deletion

1 views collected around this technical thread.

Qunar Tech Salon
Qunar Tech Salon
Nov 20, 2019 · Databases

Redis Expiration Mechanisms and Key Deletion Strategies

This article explains how Redis manages key expiration using EXPIRE, PEXPIRE, EXPIREAT, and PEXPIREAT commands, details the internal expires dictionary, demonstrates code examples for setting, retrieving, and removing TTL, and discusses the lazy and periodic deletion strategies along with their impact on persistence and replication.

Key DeletionLazy DeletionPeriodic Deletion
0 likes · 22 min read
Redis Expiration Mechanisms and Key Deletion Strategies