@@ -269,5 +269,49 @@ public void QueueCommand(Func<IRedisClient, Dictionary<string, string>> command,
269269 } ) ;
270270 command ( RedisClient ) ;
271271 }
272+
273+
274+ public void QueueCommand ( Func < IRedisClient , RedisData > command )
275+ {
276+ QueueCommand ( command , null , null ) ;
277+ }
278+
279+ public void QueueCommand ( Func < IRedisClient , RedisData > command , Action < RedisData > onSuccessCallback )
280+ {
281+ QueueCommand ( command , onSuccessCallback , null ) ;
282+ }
283+
284+ public void QueueCommand ( Func < IRedisClient , RedisData > command , Action < RedisData > onSuccessCallback , Action < Exception > onErrorCallback )
285+ {
286+ BeginQueuedCommand ( new QueuedRedisCommand
287+ {
288+ RedisDataReturnCommand = command ,
289+ OnSuccessRedisDataCallback = onSuccessCallback ,
290+ OnErrorCallback = onErrorCallback
291+ } ) ;
292+ command ( RedisClient ) ;
293+ }
294+
295+
296+ public void QueueCommand ( Func < IRedisClient , RedisText > command )
297+ {
298+ QueueCommand ( command , null , null ) ;
299+ }
300+
301+ public void QueueCommand ( Func < IRedisClient , RedisText > command , Action < RedisText > onSuccessCallback )
302+ {
303+ QueueCommand ( command , onSuccessCallback , null ) ;
304+ }
305+
306+ public void QueueCommand ( Func < IRedisClient , RedisText > command , Action < RedisText > onSuccessCallback , Action < Exception > onErrorCallback )
307+ {
308+ BeginQueuedCommand ( new QueuedRedisCommand
309+ {
310+ RedisTextReturnCommand = command ,
311+ OnSuccessRedisTextCallback = onSuccessCallback ,
312+ OnErrorCallback = onErrorCallback
313+ } ) ;
314+ command ( RedisClient ) ;
315+ }
272316 }
273317}
0 commit comments