清理 Redis 缓存

/ 0评 / 0

100w+环境下 redis 缓存清理

尽量使用scan 来轮询查找,不要使用keys

1.特征识别

2.清理key

根据key指定前缀, 使用scan批量清理

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注