23
23
24
24
import org .apache .commons .logging .Log ;
25
25
import org .apache .commons .logging .LogFactory ;
26
+
26
27
import org .springframework .core .convert .converter .Converter ;
27
28
import org .springframework .data .geo .Circle ;
28
29
import org .springframework .data .geo .Distance ;
35
36
import org .springframework .data .redis .connection .convert .ListConverter ;
36
37
import org .springframework .data .redis .connection .convert .MapConverter ;
37
38
import org .springframework .data .redis .connection .convert .SetConverter ;
38
- import org .springframework .data .redis .connection .stream .*;
39
+ import org .springframework .data .redis .connection .stream .ByteRecord ;
40
+ import org .springframework .data .redis .connection .stream .Consumer ;
41
+ import org .springframework .data .redis .connection .stream .MapRecord ;
42
+ import org .springframework .data .redis .connection .stream .PendingMessages ;
43
+ import org .springframework .data .redis .connection .stream .PendingMessagesSummary ;
44
+ import org .springframework .data .redis .connection .stream .ReadOffset ;
45
+ import org .springframework .data .redis .connection .stream .RecordId ;
39
46
import org .springframework .data .redis .connection .stream .StreamInfo .XInfoConsumers ;
40
47
import org .springframework .data .redis .connection .stream .StreamInfo .XInfoGroups ;
41
48
import org .springframework .data .redis .connection .stream .StreamInfo .XInfoStream ;
49
+ import org .springframework .data .redis .connection .stream .StreamOffset ;
50
+ import org .springframework .data .redis .connection .stream .StreamReadOptions ;
51
+ import org .springframework .data .redis .connection .stream .StringRecord ;
42
52
import org .springframework .data .redis .connection .zset .Aggregate ;
43
53
import org .springframework .data .redis .connection .zset .DefaultTuple ;
44
54
import org .springframework .data .redis .connection .zset .Tuple ;
@@ -2561,35 +2571,36 @@ public Cursor<Entry<byte[], byte[]>> hScan(byte[] key, ScanOptions options) {
2561
2571
return this .delegate .hScan (key , options );
2562
2572
}
2563
2573
2564
- @ Nullable
2565
2574
@ Override
2566
2575
public Long hStrLen (byte [] key , byte [] field ) {
2567
2576
return convertAndReturn (delegate .hStrLen (key , field ), Converters .identityConverter ());
2568
2577
}
2569
2578
2570
- public @ Nullable List <Long > expireHashField (byte [] key , org .springframework .data .redis .core .types .Expiration expiration ,
2579
+ public @ Nullable List <Long > applyExpiration (byte [] key ,
2580
+ org .springframework .data .redis .core .types .Expiration expiration ,
2571
2581
FieldExpirationOptions options , byte []... fields ) {
2572
- return this .delegate .expireHashField (key , expiration , options , fields );
2582
+ return this .delegate .applyExpiration (key , expiration , options , fields );
2573
2583
}
2574
2584
2575
2585
@ Override
2576
- public List <Long > hExpire (byte [] key , long seconds , byte []... fields ) {
2577
- return this .delegate .hExpire (key , seconds , fields );
2586
+ public List <Long > hExpire (byte [] key , long seconds , FieldExpirationOptions . Condition condition , byte []... fields ) {
2587
+ return this .delegate .hExpire (key , seconds , condition , fields );
2578
2588
}
2579
2589
2580
2590
@ Override
2581
- public List <Long > hpExpire (byte [] key , long millis , byte []... fields ) {
2582
- return this .delegate .hpExpire (key , millis , fields );
2591
+ public List <Long > hpExpire (byte [] key , long millis , FieldExpirationOptions . Condition condition , byte []... fields ) {
2592
+ return this .delegate .hpExpire (key , millis , condition , fields );
2583
2593
}
2584
2594
2585
2595
@ Override
2586
- public List <Long > hExpireAt (byte [] key , long unixTime , byte []... fields ) {
2587
- return this .delegate .hExpireAt (key , unixTime , fields );
2596
+ public List <Long > hExpireAt (byte [] key , long unixTime , FieldExpirationOptions . Condition condition , byte []... fields ) {
2597
+ return this .delegate .hExpireAt (key , unixTime , condition , fields );
2588
2598
}
2589
2599
2590
2600
@ Override
2591
- public List <Long > hpExpireAt (byte [] key , long unixTimeInMillis , byte []... fields ) {
2592
- return this .delegate .hpExpireAt (key , unixTimeInMillis , fields );
2601
+ public List <Long > hpExpireAt (byte [] key , long unixTimeInMillis , FieldExpirationOptions .Condition condition ,
2602
+ byte []... fields ) {
2603
+ return this .delegate .hpExpireAt (key , unixTimeInMillis , condition , fields );
2593
2604
}
2594
2605
2595
2606
@ Override
@@ -2612,29 +2623,31 @@ public List<Long> hTtl(byte[] key, TimeUnit timeUnit, byte[]... fields) {
2612
2623
return this .delegate .hTtl (key , timeUnit , fields );
2613
2624
}
2614
2625
2615
- public @ Nullable List <Long > expireHashField (String key , org .springframework .data .redis .core .types .Expiration expiration ,
2626
+ public @ Nullable List <Long > applyExpiration (String key ,
2627
+ org .springframework .data .redis .core .types .Expiration expiration ,
2616
2628
FieldExpirationOptions options , String ... fields ) {
2617
- return expireHashField (serialize (key ), expiration , options , serializeMulti (fields ));
2629
+ return applyExpiration (serialize (key ), expiration , options , serializeMulti (fields ));
2618
2630
}
2619
2631
2620
2632
@ Override
2621
- public List <Long > hExpire (String key , long seconds , String ... fields ) {
2622
- return hExpire (serialize (key ), seconds , serializeMulti (fields ));
2633
+ public List <Long > hExpire (String key , long seconds , FieldExpirationOptions . Condition condition , String ... fields ) {
2634
+ return hExpire (serialize (key ), seconds , condition , serializeMulti (fields ));
2623
2635
}
2624
2636
2625
2637
@ Override
2626
- public List <Long > hpExpire (String key , long millis , String ... fields ) {
2627
- return hpExpire (serialize (key ), millis , serializeMulti (fields ));
2638
+ public List <Long > hpExpire (String key , long millis , FieldExpirationOptions . Condition condition , String ... fields ) {
2639
+ return hpExpire (serialize (key ), millis , condition , serializeMulti (fields ));
2628
2640
}
2629
2641
2630
2642
@ Override
2631
- public List <Long > hExpireAt (String key , long unixTime , String ... fields ) {
2632
- return hExpireAt (serialize (key ), unixTime , serializeMulti (fields ));
2643
+ public List <Long > hExpireAt (String key , long unixTime , FieldExpirationOptions . Condition condition , String ... fields ) {
2644
+ return hExpireAt (serialize (key ), unixTime , condition , serializeMulti (fields ));
2633
2645
}
2634
2646
2635
2647
@ Override
2636
- public List <Long > hpExpireAt (String key , long unixTimeInMillis , String ... fields ) {
2637
- return hpExpireAt (serialize (key ), unixTimeInMillis , serializeMulti (fields ));
2648
+ public List <Long > hpExpireAt (String key , long unixTimeInMillis , FieldExpirationOptions .Condition condition ,
2649
+ String ... fields ) {
2650
+ return hpExpireAt (serialize (key ), unixTimeInMillis , condition , serializeMulti (fields ));
2638
2651
}
2639
2652
2640
2653
@ Override
0 commit comments