@@ -48,19 +48,31 @@ public static Dictionary<string, RedisResult>[] TFunctionList(this IDatabase db,
4848 }
4949
5050 /// <summary>
51- /// Trigger a sync or async (Coroutine) function.
51+ /// Trigger a sync function.
5252 /// </summary>
5353 /// <param name="libraryName">The library name contains the function.</param>
5454 /// <param name="functionName">The function name to run.</param>
5555 /// <param name="keys">keys that will be touched by the function.</param>
5656 /// <param name="args">Additional argument to pass to the function.</param>
57- /// <param name="async">If true, Invoke an async function (Coroutine).</param>
5857 /// <returns>The return value from the sync & async function on error in case of failure.</returns>
59- /// <remarks><seealso href="https://redis.io/commands/tfcall"/></remarks> //TODO: check this link when it's available
60- /// <remarks><seealso href="https://redis.io/commands/tfcallasync"/></remarks> //TODO: check this link when it's available
61- public static RedisResult TFCall ( this IDatabase db , string libraryName , string functionName , string [ ] ? keys = null , string [ ] ? args = null , bool async = false )
58+ /// <remarks><seealso href="https://redis.io/commands/tfcall"/></remarks>
59+ public static RedisResult TFCall_ ( this IDatabase db , string libraryName , string functionName , string [ ] ? keys = null , string [ ] ? args = null )
6260 {
63- return db . Execute ( GearsCommandBuilder . TFCall ( libraryName , functionName , keys , args , async ) ) ;
61+ return db . Execute ( GearsCommandBuilder . TFCall ( libraryName , functionName , keys , args , async : false ) ) ;
62+ }
63+
64+ /// <summary>
65+ /// Trigger a async (Coroutine) function.
66+ /// </summary>
67+ /// <param name="libraryName">The library name contains the function.</param>
68+ /// <param name="functionName">The function name to run.</param>
69+ /// <param name="keys">keys that will be touched by the function.</param>
70+ /// <param name="args">Additional argument to pass to the function.</param>
71+ /// <returns>The return value from the sync & async function on error in case of failure.</returns>
72+ /// <remarks><seealso href="https://redis.io/commands/tfcallasync"/></remarks>
73+ public static RedisResult TFCallAsync_ ( this IDatabase db , string libraryName , string functionName , string [ ] ? keys = null , string [ ] ? args = null )
74+ {
75+ return db . Execute ( GearsCommandBuilder . TFCall ( libraryName , functionName , keys , args , async : true ) ) ;
6476 }
6577 }
6678}
0 commit comments