StackExchange / StackExchange/StackExchange.Redis
RedisKey WithPrefix usage
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.2k
- Forks
- 1.6k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Redis + operator is obsoleted with message to use WithPrefix method
https://github.com/StackExchange/StackExchange.Redis/blob/84766514b0af2d24ba4273506b389c1992ef382b/src/StackExchange.Redis/RedisKey.cs#L313-L315
But the method is internal
https://github.com/StackExchange/StackExchange.Redis/blob/84766514b0af2d24ba4273506b389c1992ef382b/src/StackExchange.Redis/RedisKey.cs#L317
Am I missing something or there is no way to use prefix logic without supressing obsolete warning?
Contributor guide
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
Start in src/StackExchange.Redis/RedisKey.cs at the linked operator and WithPrefix method. Check how the obsolete guidance relates to the method's internal visibility and identify the public API behavior needed for prefix logic. Done means users can follow the recommended path without suppressing the obsolete warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, redis
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100