@@ -301,7 +301,7 @@ public void CanUseScanWithEmptyStore()
301301 var db = redis . GetDatabase ( 0 ) ;
302302 var result = db . Execute ( "SCAN" , "0" ) ;
303303 ClassicAssert . AreEqual ( ResultType . BulkString , result [ 0 ] . Resp2Type ) ;
304- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out var cursor ) ;
304+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out var cursor ) ;
305305 RedisValue [ ] keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
306306 ClassicAssert . IsTrue ( cursor == 0 ) ;
307307 ClassicAssert . IsTrue ( keysMatch . Length == 0 ) ;
@@ -339,7 +339,7 @@ public void CanUseScanAllKeys()
339339 {
340340 var result = db . Execute ( "SCAN" , cursor . ToString ( ) ) ;
341341 ClassicAssert . AreEqual ( ResultType . BulkString , result [ 0 ] . Resp2Type ) ;
342- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
342+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
343343 RedisValue [ ] keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
344344 recordsReturned += keysMatch . Length ;
345345 } while ( cursor != 0 ) ;
@@ -367,7 +367,7 @@ public void CanUseScanKeysWithCount()
367367 do
368368 {
369369 var result = db . Execute ( "SCAN" , cursor . ToString ( ) , "COUNT" , count ) ;
370- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
370+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
371371 RedisValue [ ] keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
372372 recordsReturned += keysMatch . Length ;
373373 count = rnd . Next ( 1 , 20 ) ;
@@ -390,7 +390,7 @@ public void CanUseScanKeysWithMatchAndCount()
390390
391391 int cursor = 0 ;
392392 var result = db . Execute ( "SCAN" , cursor . ToString ( ) , "MATCH" , "*11*" , "COUNT" , 1000 ) ;
393- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
393+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
394394 RedisValue [ ] keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
395395 ClassicAssert . IsTrue ( cursor == 0 ) ;
396396 ClassicAssert . IsTrue ( keysMatch . Length == 11 ) ;
@@ -410,7 +410,7 @@ public void CanUseScanKeysCountAndStringType()
410410
411411 int cursor = 0 ;
412412 var result = db . Execute ( "SCAN" , cursor . ToString ( ) , "TYPE" , "string" , "COUNT" , "100" ) ;
413- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
413+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
414414 RedisValue [ ] keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
415415 ClassicAssert . IsTrue ( cursor == 0 ) ;
416416 ClassicAssert . IsTrue ( keysMatch . Length == 100 ) ;
@@ -445,22 +445,22 @@ public void CanUseScanKeysCountAndTypeWithObjects()
445445
446446 int cursor = 0 ;
447447 var result = db . Execute ( "SCAN" , cursor . ToString ( ) , "TYPE" , "string" , "COUNT" , "100" ) ;
448- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
448+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
449449 RedisValue [ ] keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
450450 ClassicAssert . IsTrue ( cursor == 0 ) ;
451451 ClassicAssert . IsTrue ( keysMatch . Length == 100 ) ;
452452
453453 cursor = 0 ;
454454 result = db . Execute ( "SCAN" , cursor . ToString ( ) , "TYPE" , "zset" ) ;
455- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
455+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
456456 keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
457457 ClassicAssert . IsTrue ( cursor == 0 ) ;
458458 ClassicAssert . IsTrue ( keysMatch . Length == 10 ) ;
459459 ClassicAssert . IsTrue ( keysMatch [ 0 ] . ToString ( ) . Equals ( "sskey:0" , StringComparison . OrdinalIgnoreCase ) ) ;
460460
461461 cursor = 0 ;
462462 result = db . Execute ( "SCAN" , cursor . ToString ( ) , "TYPE" , "LIST" ) ;
463- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
463+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
464464 keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
465465 ClassicAssert . IsTrue ( cursor == 0 ) ;
466466 ClassicAssert . IsTrue ( keysMatch . Length == 10 ) ;
@@ -496,7 +496,7 @@ public void CanUseScanKeysAndObjects()
496496 do
497497 {
498498 var result = db . Execute ( "SCAN" , cursor . ToString ( ) ) ;
499- _ = long . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
499+ _ = long . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
500500 RedisValue [ ] keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
501501 recordsReturned += keysMatch . Length ;
502502 } while ( cursor != 0 ) ;
@@ -528,7 +528,7 @@ public void CanUseScanKeysTypeAndMatch()
528528 do
529529 {
530530 var result = db . Execute ( "SCAN" , cursor . ToString ( ) , "TYPE" , "HASH" , "MATCH" , "hs*" ) ;
531- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
531+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
532532 RedisValue [ ] keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
533533 recordsReturned += keysMatch . Length ;
534534 } while ( cursor != 0 ) ;
@@ -540,7 +540,7 @@ public void CanUseScanKeysTypeAndMatch()
540540 do
541541 {
542542 var result = db . Execute ( "SCAN" , cursor . ToString ( ) , "type" , "hash" , "match" , "hs*" ) ;
543- _ = int . TryParse ( ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
543+ _ = int . TryParse ( ( string ) ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 0 ] ) [ 0 ] , out cursor ) ;
544544 RedisValue [ ] keysMatch = ( ( RedisValue [ ] ) ( ( RedisResult [ ] ) result ! ) [ 1 ] ) ;
545545 recordsReturned += keysMatch . Length ;
546546 } while ( cursor != 0 ) ;
0 commit comments