litestar-org/litestar

Enhancement: Use redis `GETEX` in `RedisStore.get` for `renew_for` functionality on redis 6.2+

开放

#4,993 创建于 2026年8月16日

 (3 条评论) (0 个反应) (0 位负责人)Python (550 个派生)user submission
EnhancementGood First Issue

仓库指标

星标
 (8,243 个星标)
PR 合并指标
 (平均合并 13小时 27分钟) (30 天内合并 26 个 PR)

描述

Summary

RedisStore.get predates Redi 6.2, which introduced GETEX to get a value and set its expiry in one step. On supported redis versions, GETEX should be used instead of the custom script.

贡献者指南