11using StackExchange . Redis ;
22namespace NRedisStack
33{
4-
4+ [ Obsolete ]
55 public static class GearsCommands //: GearsCommandsAsync, IGearsCommands
66 {
77
@@ -17,6 +17,7 @@ public static class GearsCommands //: GearsCommandsAsync, IGearsCommands
1717 /// <param name="replace">an optional argument, instructs RedisGears to replace the function if its already exists.</param>
1818 /// <returns><see langword="true"/> if everything was done correctly, Error otherwise.</returns>
1919 /// <remarks><seealso href="https://redis.io/commands/tfunction-load/"/></remarks> //TODO: check this link when it's available
20+ [ Obsolete ]
2021 public static bool TFunctionLoad ( this IDatabase db , string libraryCode , bool replace = false , string ? config = null )
2122 {
2223 return db . Execute ( GearsCommandBuilder . TFunctionLoad ( libraryCode , replace , config ) ) . OKtoBoolean ( ) ;
@@ -28,6 +29,7 @@ public static bool TFunctionLoad(this IDatabase db, string libraryCode, bool rep
2829 /// <param name="libraryName">the name of the library to delete.</param>
2930 /// <returns><see langword="true"/> if the library was deleted successfully, Error otherwise.</returns>
3031 /// <remarks><seealso href="https://redis.io/commands/tfunction-delete/"/></remarks> //TODO: check this link when it's available
32+ [ Obsolete ]
3133 public static bool TFunctionDelete ( this IDatabase db , string libraryName )
3234 {
3335 return db . Execute ( GearsCommandBuilder . TFunctionDelete ( libraryName ) ) . OKtoBoolean ( ) ;
@@ -42,6 +44,7 @@ public static bool TFunctionDelete(this IDatabase db, string libraryName)
4244 /// multiple times to show multiple libraries in a single command)</param>
4345 /// <returns>Information about the requested libraries.</returns>
4446 /// <remarks><seealso href="https://redis.io/commands/tfunction-list/"/></remarks> //TODO: check this link when it's available
47+ [ Obsolete ]
4548 public static Dictionary < string , RedisResult > [ ] TFunctionList ( this IDatabase db , bool withCode = false , int verbose = 0 , string ? libraryName = null )
4649 {
4750 return db . Execute ( GearsCommandBuilder . TFunctionList ( withCode , verbose , libraryName ) ) . ToDictionarys ( ) ;
@@ -56,6 +59,7 @@ public static Dictionary<string, RedisResult>[] TFunctionList(this IDatabase db,
5659 /// <param name="args">Additional argument to pass to the function.</param>
5760 /// <returns>The return value from the sync & async function on error in case of failure.</returns>
5861 /// <remarks><seealso href="https://redis.io/commands/tfcall"/></remarks>
62+ [ Obsolete ]
5963 public static RedisResult TFCall_ ( this IDatabase db , string libraryName , string functionName , string [ ] ? keys = null , string [ ] ? args = null )
6064 {
6165 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
7074 /// <param name="args">Additional argument to pass to the function.</param>
7175 /// <returns>The return value from the sync & async function on error in case of failure.</returns>
7276 /// <remarks><seealso href="https://redis.io/commands/tfcallasync"/></remarks>
77+ [ Obsolete ]
7378 public static RedisResult TFCallAsync_ ( this IDatabase db , string libraryName , string functionName , string [ ] ? keys = null , string [ ] ? args = null )
7479 {
7580 return db . Execute ( GearsCommandBuilder . TFCall ( libraryName , functionName , keys , args , async: true ) ) ;
0 commit comments