crossoverJie / crossoverJie/distributed-redis-tool
为什么每次incr都要调用 expire
Open
- Dominant language
- Java
- Stars
- 612
- Forks
- 301
- PR merge metrics
- No merged PRs in 30d
Description
else
-- 没有达到阈值 value + 1
redis.call("INCRBY", key, 1)
redis.call("EXPIRE", key, 2)
return curentLimit + 1
end
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue only identifies an else branch containing Redis INCRBY and EXPIRE calls; no source file or test is named. Start by locating this Lua script in the repository and checking the Redis command semantics and surrounding threshold logic. Done means documenting whether the expiration call is intentional and identifying the required behavior if it is not.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, redis
- Domain
- backend, databases, distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100