@@ -205,6 +205,27 @@ public interface IJsonCommands
205205 /// <remarks><seealso href="https://redis.io/commands/json.set"/></remarks>
206206 bool Set ( RedisKey key , RedisValue path , RedisValue json , When when = When . Always ) ;
207207
208+ /// <summary>
209+ /// Set json file from the provided file Path.
210+ /// </summary>
211+ /// <param name="key">The key.</param>
212+ /// <param name="path">The path to set within the key.</param>
213+ /// <param name="filePath">The path of the file to set.</param>
214+ /// <param name="when">When to set the value.</param>
215+ /// <returns>The disposition of the command</returns>
216+ /// <remarks><seealso href="https://redis.io/commands/json.set"/></remarks>
217+ bool SetFromFile ( RedisKey key , RedisValue path , string filePath , When when = When . Always ) ;
218+
219+ /// <summary>
220+ /// Set all json files in the provided file Path.
221+ /// </summary>
222+ /// <param name="path">The path to set within the file name as key.</param>
223+ /// <param name="filesPath">The path of the file to set.</param>
224+ /// <param name="when">When to set the value.</param>
225+ /// <returns>The number of files that have been set</returns>
226+ /// <remarks><seealso href="https://redis.io/commands/json.set"/></remarks>
227+ int SetFromDirectory ( RedisValue path , string filesPath , When when = When . Always ) ;
228+
208229 /// <summary>
209230 /// Appends the provided string to the string(s) at the provided path.
210231 /// </summary>
@@ -451,6 +472,27 @@ public interface IJsonCommands
451472 /// <remarks><seealso href="https://redis.io/commands/json.set"/></remarks>
452473 Task < bool > SetAsync ( RedisKey key , RedisValue path , RedisValue json , When when = When . Always ) ;
453474
475+ /// <summary>
476+ /// Set json file from the provided file Path.
477+ /// </summary>
478+ /// <param name="key">The key.</param>
479+ /// <param name="path">The path to set within the key.</param>
480+ /// <param name="filePath">The path of the file to set.</param>
481+ /// <param name="when">When to set the value.</param>
482+ /// <returns>The disposition of the command</returns>
483+ /// <remarks><seealso href="https://redis.io/commands/json.set"/></remarks>
484+ Task < bool > SetFromFileAsync ( RedisKey key , RedisValue path , string filePath , When when = When . Always ) ;
485+
486+ /// <summary>
487+ /// Set all json files in the provided file Path.
488+ /// </summary>
489+ /// <param name="path">The path to set within the file name as key.</param>
490+ /// <param name="filesPath">The path of the file to set.</param>
491+ /// <param name="when">When to set the value.</param>
492+ /// <returns>The number of files that have been set</returns>
493+ /// <remarks><seealso href="https://redis.io/commands/json.set"/></remarks>
494+ Task < int > SetFromDirectoryAsync ( RedisValue path , string filesPath , When when = When . Always ) ;
495+
454496 /// <summary>
455497 /// Appends the provided string to the string(s) at the provided path.
456498 /// </summary>
0 commit comments