@@ -1144,79 +1144,93 @@ interface RedisCommander<Context extends ClientContext = { type: "default" }> {
11441144 flushdb ( sync : 'SYNC' , callback ?: Callback < 'OK' > ) : Result < 'OK' , Context > ;
11451145
11461146 /**
1147- * List information about all the functions
1147+ * Dump all functions into a serialized binary payload
11481148 * - _group_: scripting
11491149 * - _complexity_: O(N) where N is the number of functions
11501150 * - _since_: 7.0.0
11511151 */
1152- function ( subcommand : 'LIST' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1153- function ( subcommand : 'LIST' , withcode : 'WITHCODE' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1154- function ( subcommand : 'LIST' , libraryNamePatternToken : 'LIBRARYNAME' , libraryNamePattern : string | Buffer , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1155- function ( subcommand : 'LIST' , libraryNamePatternToken : 'LIBRARYNAME' , libraryNamePattern : string | Buffer , withcode : 'WITHCODE' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1152+ function ( subcommand : 'DUMP' , callback ?: Callback < string > ) : Result < string , Context > ;
1153+ functionBuffer ( subcommand : 'DUMP' , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
11561154
11571155 /**
1158- * Restore all the functions on the given payload
1156+ * Show helpful text about the different subcommands
11591157 * - _group_: scripting
1160- * - _complexity_: O(N) where N is the number of functions on the payload
1158+ * - _complexity_: O(1)
11611159 * - _since_: 7.0.0
11621160 */
1163- function ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1164- function ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , flush : 'FLUSH' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1165- function ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , append : 'APPEND' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1166- function ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , replace : 'REPLACE' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1161+ function ( subcommand : 'HELP' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
11671162
11681163 /**
1169- * Delete a function by name
1164+ * Deleting all functions
11701165 * - _group_: scripting
1171- * - _complexity_: O(1)
1166+ * - _complexity_: O(N) where N is the number of functions deleted
11721167 * - _since_: 7.0.0
11731168 */
1174- function ( subcommand : 'DELETE' , libraryName : string | Buffer , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1169+ function ( subcommand : 'FLUSH' , callback ?: Callback < string > ) : Result < string , Context > ;
1170+ functionBuffer ( subcommand : 'FLUSH' , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
1171+ function ( subcommand : 'FLUSH' , async : 'ASYNC' , callback ?: Callback < string > ) : Result < string , Context > ;
1172+ functionBuffer ( subcommand : 'FLUSH' , async : 'ASYNC' , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
1173+ function ( subcommand : 'FLUSH' , sync : 'SYNC' , callback ?: Callback < string > ) : Result < string , Context > ;
1174+ functionBuffer ( subcommand : 'FLUSH' , sync : 'SYNC' , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
11751175
11761176 /**
1177- * Create a function with the given arguments (name, code, description)
1177+ * Kill the function currently in execution.
11781178 * - _group_: scripting
1179- * - _complexity_: O(1) (considering compilation time is redundant)
1179+ * - _complexity_: O(1)
11801180 * - _since_: 7.0.0
11811181 */
1182- function ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , functionCode : string | Buffer , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1183- function ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , libraryDescriptionToken : 'DESCRIPTION' , libraryDescription : string | Buffer , functionCode : string | Buffer , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1184- function ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , replace : 'REPLACE' , functionCode : string | Buffer , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1185- function ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , replace : 'REPLACE' , libraryDescriptionToken : 'DESCRIPTION' , libraryDescription : string | Buffer , functionCode : string | Buffer , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1182+ function ( subcommand : 'KILL' , callback ?: Callback < string > ) : Result < string , Context > ;
1183+ functionBuffer ( subcommand : 'KILL' , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
11861184
11871185 /**
1188- * Kill the function currently in execution.
1186+ * Delete a function by name
11891187 * - _group_: scripting
11901188 * - _complexity_: O(1)
11911189 * - _since_: 7.0.0
11921190 */
1193- function ( subcommand : 'KILL' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1191+ function ( subcommand : 'DELETE' , libraryName : string | Buffer , callback ?: Callback < string > ) : Result < string , Context > ;
1192+ functionBuffer ( subcommand : 'DELETE' , libraryName : string | Buffer , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
11941193
11951194 /**
1196- * Dump all functions into a serialized binary payload
1195+ * Restore all the functions on the given payload
11971196 * - _group_: scripting
1198- * - _complexity_: O(N) where N is the number of functions
1197+ * - _complexity_: O(N) where N is the number of functions on the payload
11991198 * - _since_: 7.0.0
12001199 */
1201- function ( subcommand : 'DUMP' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1200+ function ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , callback ?: Callback < string > ) : Result < string , Context > ;
1201+ functionBuffer ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
1202+ function ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , flush : 'FLUSH' , callback ?: Callback < string > ) : Result < string , Context > ;
1203+ functionBuffer ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , flush : 'FLUSH' , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
1204+ function ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , append : 'APPEND' , callback ?: Callback < string > ) : Result < string , Context > ;
1205+ functionBuffer ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , append : 'APPEND' , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
1206+ function ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , replace : 'REPLACE' , callback ?: Callback < string > ) : Result < string , Context > ;
1207+ functionBuffer ( subcommand : 'RESTORE' , serializedValue : string | Buffer | number , replace : 'REPLACE' , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
12021208
12031209 /**
1204- * Show helpful text about the different subcommands
1210+ * List information about all the functions
12051211 * - _group_: scripting
1206- * - _complexity_: O(1)
1212+ * - _complexity_: O(N) where N is the number of functions
12071213 * - _since_: 7.0.0
12081214 */
1209- function ( subcommand : 'HELP' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1215+ function ( subcommand : 'LIST' , callback ?: Callback < unknown [ ] > ) : Result < unknown [ ] , Context > ;
1216+ function ( subcommand : 'LIST' , withcode : 'WITHCODE' , callback ?: Callback < unknown [ ] > ) : Result < unknown [ ] , Context > ;
1217+ function ( subcommand : 'LIST' , libraryNamePatternToken : 'LIBRARYNAME' , libraryNamePattern : string | Buffer , callback ?: Callback < unknown [ ] > ) : Result < unknown [ ] , Context > ;
1218+ function ( subcommand : 'LIST' , libraryNamePatternToken : 'LIBRARYNAME' , libraryNamePattern : string | Buffer , withcode : 'WITHCODE' , callback ?: Callback < unknown [ ] > ) : Result < unknown [ ] , Context > ;
12101219
12111220 /**
1212- * Deleting all functions
1221+ * Create a function with the given arguments (name, code, description)
12131222 * - _group_: scripting
1214- * - _complexity_: O(N) where N is the number of functions deleted
1223+ * - _complexity_: O(1) (considering compilation time is redundant)
12151224 * - _since_: 7.0.0
12161225 */
1217- function ( subcommand : 'FLUSH' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1218- function ( subcommand : 'FLUSH' , async : 'ASYNC' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1219- function ( subcommand : 'FLUSH' , sync : 'SYNC' , callback ?: Callback < unknown > ) : Result < unknown , Context > ;
1226+ function ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , functionCode : string | Buffer , callback ?: Callback < string > ) : Result < string , Context > ;
1227+ functionBuffer ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , functionCode : string | Buffer , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
1228+ function ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , libraryDescriptionToken : 'DESCRIPTION' , libraryDescription : string | Buffer , functionCode : string | Buffer , callback ?: Callback < string > ) : Result < string , Context > ;
1229+ functionBuffer ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , libraryDescriptionToken : 'DESCRIPTION' , libraryDescription : string | Buffer , functionCode : string | Buffer , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
1230+ function ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , replace : 'REPLACE' , functionCode : string | Buffer , callback ?: Callback < string > ) : Result < string , Context > ;
1231+ functionBuffer ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , replace : 'REPLACE' , functionCode : string | Buffer , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
1232+ function ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , replace : 'REPLACE' , libraryDescriptionToken : 'DESCRIPTION' , libraryDescription : string | Buffer , functionCode : string | Buffer , callback ?: Callback < string > ) : Result < string , Context > ;
1233+ functionBuffer ( subcommand : 'LOAD' , engineName : string | Buffer , libraryName : string | Buffer , replace : 'REPLACE' , libraryDescriptionToken : 'DESCRIPTION' , libraryDescription : string | Buffer , functionCode : string | Buffer , callback ?: Callback < Buffer > ) : Result < Buffer , Context > ;
12201234
12211235 /**
12221236 * Return information about the function currently running (name, description, duration)
0 commit comments