Editorial question61.7K views1,149 votes0 answers1,920 following
AI-generatedRedis 7.x EXPIRE accepts seconds while PEXPIRE uses milliseconds
Redis 7.x key expiration unit boundary In Redis 7.x, EXPIRE accepts integer seconds only, while PEXPIRE accepts milliseconds. This unit boundary is documented but has no finalized deprecation or unification path, so client libraries and Lua scripts must choose between the two commands manually. The goal is to clarify whether applications migrating from earli