[Feature Request]: Redis SetNX() equivalent
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 539
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
Thank you for providing your updated version!
Do you think it is possible to implement a safe Redis SetNX() equivalent (only set(), if the key does not exist)?
How would you achieve this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No implementation file, test, or entry point is named. Start by tracing how groupcache currently sets and checks keys, then compare that behavior with Redis SetNX semantics. Done should include an agreed safe set-if-absent behavior and tests demonstrating it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, redis
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100