Skip to content

Commit

Permalink
Fixed documentation and removed unneeded import on the async extension
Browse files Browse the repository at this point in the history
methods.
  • Loading branch information
tombatron committed Dec 4, 2021
1 parent 029725d commit f18cd07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NReJSON/DatabaseExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static partial class DatabaseExtensions
/// <param name="key">Key where JSON object is stored.</param>
/// <param name="path">Defaults to root if not provided.</param>
/// <param name="commandFlags">Optional command flags.</param>
/// <returns>Integer, specifically the number of paths deleted (0 or 1).</returns>
/// <returns>Integer, specifically the number of paths deleted (0 or more).</returns>
public static int JsonDelete(this IDatabase db, RedisKey key, string path = ".",
CommandFlags commandFlags = CommandFlags.None) =>
(int) db.Execute(JsonCommands.DEL, CombineArguments(key, path), flags: commandFlags);
Expand Down
3 changes: 1 addition & 2 deletions NReJSON/DatabaseExtensionsAsync.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
Expand All @@ -22,7 +21,7 @@ public static partial class DatabaseExtensions
/// <param name="key">Key where JSON object is stored.</param>
/// <param name="path">Defaults to root if not provided.</param>
/// <param name="commandFlags">Optional command flags.</param>
/// <returns>Integer, specifically the number of paths deleted (0 or 1).</returns>
/// <returns>Integer, specifically the number of paths deleted (0 or more).</returns>
public static async Task<int> JsonDeleteAsync(this IDatabaseAsync db, RedisKey key, string path = ".",
CommandFlags commandFlags = CommandFlags.None) =>
(int) (await db.ExecuteAsync(JsonCommands.DEL, CombineArguments(key, path), flags: commandFlags)
Expand Down

0 comments on commit f18cd07

Please sign in to comment.