@@ -331,7 +331,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
331
331
/// <param name="key">The key of the hash.</param>
332
332
/// <param name="hashField">The field in the hash to get.</param>
333
333
/// <param name="flags">The flags to use for this operation.</param>
334
- /// <returns>The value associated with field, or nil when field is not present in the hash or key does not exist.</returns>
334
+ /// <returns>The value associated with field, or <see cref="RedisValue.Null"/> when field is not present in the hash or key does not exist.</returns>
335
335
/// <remarks><seealso href="https://redis.io/commands/hget"/></remarks>
336
336
RedisValue HashGet ( RedisKey key , RedisValue hashField , CommandFlags flags = CommandFlags . None ) ;
337
337
@@ -341,13 +341,14 @@ public interface IDatabase : IRedis, IDatabaseAsync
341
341
/// <param name="key">The key of the hash.</param>
342
342
/// <param name="hashField">The field in the hash to get.</param>
343
343
/// <param name="flags">The flags to use for this operation.</param>
344
- /// <returns>The value associated with field, or nil when field is not present in the hash or key does not exist.</returns>
344
+ /// <returns>The value associated with field, or <see langword="null"/> when field is not present in the hash or key does not exist.</returns>
345
345
/// <remarks><seealso href="https://redis.io/commands/hget"/></remarks>
346
346
Lease < byte > ? HashGetLease ( RedisKey key , RedisValue hashField , CommandFlags flags = CommandFlags . None ) ;
347
347
348
348
/// <summary>
349
349
/// Returns the values associated with the specified fields in the hash stored at key.
350
- /// For every field that does not exist in the hash, a nil value is returned.Because a non-existing keys are treated as empty hashes, running HMGET against a non-existing key will return a list of nil values.
350
+ /// For every field that does not exist in the hash, a <see langword="RedisValue.Null"/> value is returned.
351
+ /// Because non-existing keys are treated as empty hashes, running HMGET against a non-existing key will return a list of <see langword="RedisValue.Null"/> values.
351
352
/// </summary>
352
353
/// <param name="key">The key of the hash.</param>
353
354
/// <param name="hashFields">The fields in the hash to get.</param>
@@ -802,7 +803,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
802
803
/// Return a random key from the currently selected database.
803
804
/// </summary>
804
805
/// <param name="flags">The flags to use for this operation.</param>
805
- /// <returns>The random key, or nil when the database is empty.</returns>
806
+ /// <returns>The random key, or <see cref="RedisKey.Null"/> when the database is empty.</returns>
806
807
/// <remarks><seealso href="https://redis.io/commands/randomkey"/></remarks>
807
808
RedisKey KeyRandom ( CommandFlags flags = CommandFlags . None ) ;
808
809
@@ -847,7 +848,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
847
848
/// </summary>
848
849
/// <param name="key">The key to check.</param>
849
850
/// <param name="flags">The flags to use for this operation.</param>
850
- /// <returns>TTL, or nil when key does not exist or does not have a timeout.</returns>
851
+ /// <returns>TTL, or <see langword="null"/> when key does not exist or does not have a timeout.</returns>
851
852
/// <remarks><seealso href="https://redis.io/commands/ttl"/></remarks>
852
853
TimeSpan ? KeyTimeToLive ( RedisKey key , CommandFlags flags = CommandFlags . None ) ;
853
854
@@ -888,7 +889,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
888
889
/// <param name="key">The key of the list.</param>
889
890
/// <param name="index">The index position to get the value at.</param>
890
891
/// <param name="flags">The flags to use for this operation.</param>
891
- /// <returns>The requested element, or nil when index is out of range.</returns>
892
+ /// <returns>The requested element, or <see cref="RedisValue.Null"/> when index is out of range.</returns>
892
893
/// <remarks><seealso href="https://redis.io/commands/lindex"/></remarks>
893
894
RedisValue ListGetByIndex ( RedisKey key , long index , CommandFlags flags = CommandFlags . None ) ;
894
895
@@ -921,7 +922,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
921
922
/// </summary>
922
923
/// <param name="key">The key of the list.</param>
923
924
/// <param name="flags">The flags to use for this operation.</param>
924
- /// <returns>The value of the first element, or nil when key does not exist.</returns>
925
+ /// <returns>The value of the first element, or <see cref="RedisValue.Null"/> when key does not exist.</returns>
925
926
/// <remarks><seealso href="https://redis.io/commands/lpop"/></remarks>
926
927
RedisValue ListLeftPop ( RedisKey key , CommandFlags flags = CommandFlags . None ) ;
927
928
@@ -932,7 +933,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
932
933
/// <param name="key">The key of the list.</param>
933
934
/// <param name="count">The number of elements to remove</param>
934
935
/// <param name="flags">The flags to use for this operation.</param>
935
- /// <returns>Array of values that were popped, or nil if the key doesn't exist.</returns>
936
+ /// <returns>Array of values that were popped, or <see langword="null"/> if the key doesn't exist.</returns>
936
937
/// <remarks><seealso href="https://redis.io/commands/lpop"/></remarks>
937
938
RedisValue [ ] ListLeftPop ( RedisKey key , long count , CommandFlags flags = CommandFlags . None ) ;
938
939
@@ -1075,7 +1076,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
1075
1076
/// </summary>
1076
1077
/// <param name="key">The key of the list.</param>
1077
1078
/// <param name="flags">The flags to use for this operation.</param>
1078
- /// <returns>The element being popped.</returns>
1079
+ /// <returns>The element being popped, or <see cref="RedisValue.Null"/> when key does not exist. .</returns>
1079
1080
/// <remarks><seealso href="https://redis.io/commands/rpop"/></remarks>
1080
1081
RedisValue ListRightPop ( RedisKey key , CommandFlags flags = CommandFlags . None ) ;
1081
1082
@@ -1086,7 +1087,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
1086
1087
/// <param name="key">The key of the list.</param>
1087
1088
/// <param name="count">The number of elements to pop</param>
1088
1089
/// <param name="flags">The flags to use for this operation.</param>
1089
- /// <returns>Array of values that were popped, or nil if the key doesn't exist.</returns>
1090
+ /// <returns>Array of values that were popped, or <see langword="null"/> if the key doesn't exist.</returns>
1090
1091
/// <remarks><seealso href="https://redis.io/commands/rpop"/></remarks>
1091
1092
RedisValue [ ] ListRightPop ( RedisKey key , long count , CommandFlags flags = CommandFlags . None ) ;
1092
1093
@@ -1494,7 +1495,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
1494
1495
/// </summary>
1495
1496
/// <param name="key">The key of the set.</param>
1496
1497
/// <param name="flags">The flags to use for this operation.</param>
1497
- /// <returns>The removed element, or nil when key does not exist.</returns>
1498
+ /// <returns>The removed element, or <see cref="RedisValue.Null"/> when key does not exist.</returns>
1498
1499
/// <remarks><seealso href="https://redis.io/commands/spop"/></remarks>
1499
1500
RedisValue SetPop ( RedisKey key , CommandFlags flags = CommandFlags . None ) ;
1500
1501
@@ -2122,7 +2123,7 @@ IEnumerable<SortedSetEntry> SortedSetScan(RedisKey key,
2122
2123
2123
2124
/// <summary>
2124
2125
/// Returns the score of member in the sorted set at key.
2125
- /// If member does not exist in the sorted set, or key does not exist, nil is returned.
2126
+ /// If member does not exist in the sorted set, or key does not exist, <see langword="null"/> is returned.
2126
2127
/// </summary>
2127
2128
/// <param name="key">The key of the sorted set.</param>
2128
2129
/// <param name="member">The member to get a score for.</param>
@@ -2151,7 +2152,7 @@ IEnumerable<SortedSetEntry> SortedSetScan(RedisKey key,
2151
2152
/// <param name="key">The key of the sorted set.</param>
2152
2153
/// <param name="order">The order to sort by (defaults to ascending).</param>
2153
2154
/// <param name="flags">The flags to use for this operation.</param>
2154
- /// <returns>The removed element, or nil when key does not exist.</returns>
2155
+ /// <returns>The removed element, or <see langword="null"/> when key does not exist.</returns>
2155
2156
/// <remarks>
2156
2157
/// <seealso href="https://redis.io/commands/zpopmin"/>,
2157
2158
/// <seealso href="https://redis.io/commands/zpopmax"/>
@@ -2674,32 +2675,32 @@ IEnumerable<SortedSetEntry> SortedSetScan(RedisKey key,
2674
2675
double StringDecrement ( RedisKey key , double value , CommandFlags flags = CommandFlags . None ) ;
2675
2676
2676
2677
/// <summary>
2677
- /// Get the value of key. If the key does not exist the special value nil is returned.
2678
+ /// Get the value of key. If the key does not exist the special value <see cref="RedisValue.Null"/> is returned.
2678
2679
/// An error is returned if the value stored at key is not a string, because GET only handles string values.
2679
2680
/// </summary>
2680
2681
/// <param name="key">The key of the string.</param>
2681
2682
/// <param name="flags">The flags to use for this operation.</param>
2682
- /// <returns>The value of key, or nil when key does not exist.</returns>
2683
+ /// <returns>The value of key, or <see cref="RedisValue.Null"/> when key does not exist.</returns>
2683
2684
/// <remarks><seealso href="https://redis.io/commands/get"/></remarks>
2684
2685
RedisValue StringGet ( RedisKey key , CommandFlags flags = CommandFlags . None ) ;
2685
2686
2686
2687
/// <summary>
2687
2688
/// Returns the values of all specified keys.
2688
- /// For every key that does not hold a string value or does not exist, the special value nil is returned.
2689
+ /// For every key that does not hold a string value or does not exist, the special value <see cref="RedisValue.Null"/> is returned.
2689
2690
/// </summary>
2690
2691
/// <param name="keys">The keys of the strings.</param>
2691
2692
/// <param name="flags">The flags to use for this operation.</param>
2692
- /// <returns>The values of the strings with nil for keys do not exist.</returns>
2693
+ /// <returns>The values of the strings with <see cref="RedisValue.Null"/> for keys do not exist.</returns>
2693
2694
/// <remarks><seealso href="https://redis.io/commands/mget"/></remarks>
2694
2695
RedisValue [ ] StringGet ( RedisKey [ ] keys , CommandFlags flags = CommandFlags . None ) ;
2695
2696
2696
2697
/// <summary>
2697
- /// Get the value of key. If the key does not exist the special value nil is returned.
2698
+ /// Get the value of key. If the key does not exist the special value <see langword="null"/> is returned.
2698
2699
/// An error is returned if the value stored at key is not a string, because GET only handles string values.
2699
2700
/// </summary>
2700
2701
/// <param name="key">The key of the string.</param>
2701
2702
/// <param name="flags">The flags to use for this operation.</param>
2702
- /// <returns>The value of key, or nil when key does not exist.</returns>
2703
+ /// <returns>The value of key, or <see langword="null"/> when key does not exist.</returns>
2703
2704
/// <remarks><seealso href="https://redis.io/commands/get"/></remarks>
2704
2705
Lease < byte > ? StringGetLease ( RedisKey key , CommandFlags flags = CommandFlags . None ) ;
2705
2706
@@ -2733,7 +2734,7 @@ IEnumerable<SortedSetEntry> SortedSetScan(RedisKey key,
2733
2734
/// <param name="key">The key of the string.</param>
2734
2735
/// <param name="value">The value to replace the existing value with.</param>
2735
2736
/// <param name="flags">The flags to use for this operation.</param>
2736
- /// <returns>The old value stored at key, or nil when key did not exist.</returns>
2737
+ /// <returns>The old value stored at key, or <see cref="RedisValue.Null"/> when key did not exist.</returns>
2737
2738
/// <remarks><seealso href="https://redis.io/commands/getset"/></remarks>
2738
2739
RedisValue StringGetSet ( RedisKey key , RedisValue value , CommandFlags flags = CommandFlags . None ) ;
2739
2740
@@ -2744,7 +2745,7 @@ IEnumerable<SortedSetEntry> SortedSetScan(RedisKey key,
2744
2745
/// <param name="key">The key of the string.</param>
2745
2746
/// <param name="expiry">The expiry to set. <see langword="null"/> will remove expiry.</param>
2746
2747
/// <param name="flags">The flags to use for this operation.</param>
2747
- /// <returns>The value of key, or nil when key does not exist.</returns>
2748
+ /// <returns>The value of key, or <see cref="RedisValue.Null"/> when key does not exist.</returns>
2748
2749
/// <remarks><seealso href="https://redis.io/commands/getex"/></remarks>
2749
2750
RedisValue StringGetSetExpiry ( RedisKey key , TimeSpan ? expiry , CommandFlags flags = CommandFlags . None ) ;
2750
2751
@@ -2755,29 +2756,29 @@ IEnumerable<SortedSetEntry> SortedSetScan(RedisKey key,
2755
2756
/// <param name="key">The key of the string.</param>
2756
2757
/// <param name="expiry">The exact date and time to expire at. <see cref="DateTime.MaxValue"/> will remove expiry.</param>
2757
2758
/// <param name="flags">The flags to use for this operation.</param>
2758
- /// <returns>The value of key, or nil when key does not exist.</returns>
2759
+ /// <returns>The value of key, or <see cref="RedisValue.Null"/> when key does not exist.</returns>
2759
2760
/// <remarks><seealso href="https://redis.io/commands/getex"/></remarks>
2760
2761
RedisValue StringGetSetExpiry ( RedisKey key , DateTime expiry , CommandFlags flags = CommandFlags . None ) ;
2761
2762
2762
2763
/// <summary>
2763
2764
/// Get the value of key and delete the key.
2764
- /// If the key does not exist the special value nil is returned.
2765
+ /// If the key does not exist the special value <see cref="RedisValue.Null"/> is returned.
2765
2766
/// An error is returned if the value stored at key is not a string, because GET only handles string values.
2766
2767
/// </summary>
2767
2768
/// <param name="key">The key of the string.</param>
2768
2769
/// <param name="flags">The flags to use for this operation.</param>
2769
- /// <returns>The value of key, or nil when key does not exist.</returns>
2770
+ /// <returns>The value of key, or <see cref="RedisValue.Null"/> when key does not exist.</returns>
2770
2771
/// <remarks><seealso href="https://redis.io/commands/getdelete"/></remarks>
2771
2772
RedisValue StringGetDelete ( RedisKey key , CommandFlags flags = CommandFlags . None ) ;
2772
2773
2773
2774
/// <summary>
2774
2775
/// Get the value of key.
2775
- /// If the key does not exist the special value nil is returned.
2776
+ /// If the key does not exist the special value <see langword="default"/> is returned.
2776
2777
/// An error is returned if the value stored at key is not a string, because GET only handles string values.
2777
2778
/// </summary>
2778
2779
/// <param name="key">The key of the string.</param>
2779
2780
/// <param name="flags">The flags to use for this operation.</param>
2780
- /// <returns>The value of key and its expiry, or nil when key does not exist.</returns>
2781
+ /// <returns>The value of key and its expiry, or <see langword="default"/> when key does not exist.</returns>
2781
2782
/// <remarks><seealso href="https://redis.io/commands/get"/></remarks>
2782
2783
RedisValueWithExpiry StringGetWithExpiry ( RedisKey key , CommandFlags flags = CommandFlags . None ) ;
2783
2784
@@ -2901,7 +2902,7 @@ IEnumerable<SortedSetEntry> SortedSetScan(RedisKey key,
2901
2902
/// <param name="expiry">The expiry to set.</param>
2902
2903
/// <param name="when">Which condition to set the value under (defaults to <see cref="When.Always"/>).</param>
2903
2904
/// <param name="flags">The flags to use for this operation.</param>
2904
- /// <returns>The previous value stored at <paramref name="key"/>, or nil when key did not exist.</returns>
2905
+ /// <returns>The previous value stored at <paramref name="key"/>, or <see cref="RedisValue.Null"/> when key did not exist.</returns>
2905
2906
/// <remarks>
2906
2907
/// <para>This method uses the <c>SET</c> command with the <c>GET</c> option introduced in Redis 6.2.0 instead of the deprecated <c>GETSET</c> command.</para>
2907
2908
/// <para><seealso href="https://redis.io/commands/set"/></para>
@@ -2917,7 +2918,7 @@ IEnumerable<SortedSetEntry> SortedSetScan(RedisKey key,
2917
2918
/// <param name="keepTtl">Whether to maintain the existing key's TTL (KEEPTTL flag).</param>
2918
2919
/// <param name="when">Which condition to set the value under (defaults to <see cref="When.Always"/>).</param>
2919
2920
/// <param name="flags">The flags to use for this operation.</param>
2920
- /// <returns>The previous value stored at <paramref name="key"/>, or nil when key did not exist.</returns>
2921
+ /// <returns>The previous value stored at <paramref name="key"/>, or <see cref="RedisValue.Null"/> when key did not exist.</returns>
2921
2922
/// <remarks>This method uses the SET command with the GET option introduced in Redis 6.2.0 instead of the deprecated GETSET command.</remarks>
2922
2923
/// <remarks><seealso href="https://redis.io/commands/set"/></remarks>
2923
2924
RedisValue StringSetAndGet ( RedisKey key , RedisValue value , TimeSpan ? expiry = null , bool keepTtl = false , When when = When . Always , CommandFlags flags = CommandFlags . None ) ;
0 commit comments