Skip to content

Commit

Permalink
move the '?' to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
shacharPash committed Sep 14, 2023
1 parent 8f77bcb commit 4895597
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/NRedisStack/Json/IJsonCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public interface IJsonCommands
/// <typeparam name="T">The type retrieved</typeparam>
/// <returns>The object requested</returns>
/// <remarks><seealso href="https://redis.io/commands/json.get"/></remarks>
T? Get<T>(RedisKey key, string path = "$", JsonSerializerOptions serializerOptions? = default);
T? Get<T>(RedisKey key, string path = "$", JsonSerializerOptions? serializerOptions = default);

/// <summary>
/// Retrieves a group of items stored in Redis, appropriate if the path will resolve to multiple records.
Expand Down
2 changes: 1 addition & 1 deletion src/NRedisStack/Json/JsonCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public RedisResult Get(RedisKey key, string[] paths, RedisValue? indent = null,
}

/// <inheritdoc/>
public T? Get<T>(RedisKey key, string path = "$", JsonSerializerOptions serializerOptions? = default)
public T? Get<T>(RedisKey key, string path = "$", JsonSerializerOptions? serializerOptions = default)
{
var res = _db.Execute(JsonCommandBuilder.Get<T>(key, path));
if (res.Type == ResultType.BulkString)
Expand Down
2 changes: 1 addition & 1 deletion src/NRedisStack/Json/JsonCommandsAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public async Task<RedisResult> GetAsync(RedisKey key, string[] paths, RedisValue
return await _db.ExecuteAsync(JsonCommandBuilder.Get(key, paths, indent, newLine, space));
}

public async Task<T?> GetAsync<T>(RedisKey key, string path = "$", JsonSerializerOptions serializerOptions? = default)
public async Task<T?> GetAsync<T>(RedisKey key, string path = "$", JsonSerializerOptions? serializerOptions = default)
{
var res = await _db.ExecuteAsync(JsonCommandBuilder.Get<T>(key, path));
if (res.Type == ResultType.BulkString)
Expand Down

0 comments on commit 4895597

Please sign in to comment.