StackExchange / StackExchange/StackExchange.Redis

RedisKey WithPrefix usage

Open
#2,309 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

⚙️ area:API ❔ question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.