@@ -48,19 +48,31 @@ public static Dictionary<string, RedisResult>[] TFunctionList(this IDatabase db,
48
48
}
49
49
50
50
/// <summary>
51
- /// Trigger a sync or async (Coroutine) function.
51
+ /// Trigger a sync function.
52
52
/// </summary>
53
53
/// <param name="libraryName">The library name contains the function.</param>
54
54
/// <param name="functionName">The function name to run.</param>
55
55
/// <param name="keys">keys that will be touched by the function.</param>
56
56
/// <param name="args">Additional argument to pass to the function.</param>
57
- /// <param name="async">If true, Invoke an async function (Coroutine).</param>
58
57
/// <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 )
62
60
{
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 ) ) ;
64
76
}
65
77
}
66
78
}
0 commit comments