StackExchange / StackExchange/StackExchange.Redis

Change value type of KeyRestore from byte[] to ReadOnlyMemory<byte>

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

Nobody has claimed this yet.

⚙️ area:API ➕ enhancement 💔 breaking-change
Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Change please type byte[] value

from

void KeyRestore(RedisKey key, byte[] value, TimeSpan? expiry = null, CommandFlags flags = CommandFlags.None)
Task KeyRestoreAsync(RedisKey key, byte[] value, TimeSpan? expiry = null, CommandFlags flags = CommandFlags.None)

to

void KeyRestore(RedisKey key, ReadOnlyMemory value, TimeSpan? expiry = null, CommandFlags flags = CommandFlags.None)
Task KeyRestoreAsync(RedisKey key, ReadOnlyMemory value, TimeSpan? expiry = null, CommandFlags flags = CommandFlags.None)

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 by locating the KeyRestore and KeyRestoreAsync entry points in the repository. Compare their current signatures with the requested ReadOnlyMemory forms and check the surrounding restore coverage; done means both signatures match without changing the stated parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, redis
Domain
api, backend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.