一、字符串(String) 命令 说明 示例 SET 设置键值对 SET name "hello" GET 获取值 GET name DEL 删除键 DEL name EXPIRE 设置过期时间(秒) EXPIRE name 60 TTL 查看剩余过期时间 TTL name