1
1
using StackExchange . Redis ;
2
2
namespace NRedisStack
3
3
{
4
-
4
+ [ Obsolete ]
5
5
public static class GearsCommands //: GearsCommandsAsync, IGearsCommands
6
6
{
7
7
@@ -17,6 +17,7 @@ public static class GearsCommands //: GearsCommandsAsync, IGearsCommands
17
17
/// <param name="replace">an optional argument, instructs RedisGears to replace the function if its already exists.</param>
18
18
/// <returns><see langword="true"/> if everything was done correctly, Error otherwise.</returns>
19
19
/// <remarks><seealso href="https://redis.io/commands/tfunction-load/"/></remarks> //TODO: check this link when it's available
20
+ [ Obsolete ]
20
21
public static bool TFunctionLoad ( this IDatabase db , string libraryCode , bool replace = false , string ? config = null )
21
22
{
22
23
return db . Execute ( GearsCommandBuilder . TFunctionLoad ( libraryCode , replace , config ) ) . OKtoBoolean ( ) ;
@@ -28,6 +29,7 @@ public static bool TFunctionLoad(this IDatabase db, string libraryCode, bool rep
28
29
/// <param name="libraryName">the name of the library to delete.</param>
29
30
/// <returns><see langword="true"/> if the library was deleted successfully, Error otherwise.</returns>
30
31
/// <remarks><seealso href="https://redis.io/commands/tfunction-delete/"/></remarks> //TODO: check this link when it's available
32
+ [ Obsolete ]
31
33
public static bool TFunctionDelete ( this IDatabase db , string libraryName )
32
34
{
33
35
return db . Execute ( GearsCommandBuilder . TFunctionDelete ( libraryName ) ) . OKtoBoolean ( ) ;
@@ -42,6 +44,7 @@ public static bool TFunctionDelete(this IDatabase db, string libraryName)
42
44
/// multiple times to show multiple libraries in a single command)</param>
43
45
/// <returns>Information about the requested libraries.</returns>
44
46
/// <remarks><seealso href="https://redis.io/commands/tfunction-list/"/></remarks> //TODO: check this link when it's available
47
+ [ Obsolete ]
45
48
public static Dictionary < string , RedisResult > [ ] TFunctionList ( this IDatabase db , bool withCode = false , int verbose = 0 , string ? libraryName = null )
46
49
{
47
50
return db . Execute ( GearsCommandBuilder . TFunctionList ( withCode , verbose , libraryName ) ) . ToDictionarys ( ) ;
@@ -56,6 +59,7 @@ public static Dictionary<string, RedisResult>[] TFunctionList(this IDatabase db,
56
59
/// <param name="args">Additional argument to pass to the function.</param>
57
60
/// <returns>The return value from the sync & async function on error in case of failure.</returns>
58
61
/// <remarks><seealso href="https://redis.io/commands/tfcall"/></remarks>
62
+ [ Obsolete ]
59
63
public static RedisResult TFCall_ ( this IDatabase db , string libraryName , string functionName , string [ ] ? keys = null , string [ ] ? args = null )
60
64
{
61
65
return db . Execute ( GearsCommandBuilder . TFCall ( libraryName , functionName , keys , args , async: false ) ) ;
@@ -70,6 +74,7 @@ public static RedisResult TFCall_(this IDatabase db, string libraryName, string
70
74
/// <param name="args">Additional argument to pass to the function.</param>
71
75
/// <returns>The return value from the sync & async function on error in case of failure.</returns>
72
76
/// <remarks><seealso href="https://redis.io/commands/tfcallasync"/></remarks>
77
+ [ Obsolete ]
73
78
public static RedisResult TFCallAsync_ ( this IDatabase db , string libraryName , string functionName , string [ ] ? keys = null , string [ ] ? args = null )
74
79
{
75
80
return db . Execute ( GearsCommandBuilder . TFCall ( libraryName , functionName , keys , args , async: true ) ) ;
0 commit comments