Skip to content

Commit 117b0d5

Browse files
committed
chore: docs
1 parent 783b159 commit 117b0d5

File tree

1 file changed

+6
-35
lines changed

1 file changed

+6
-35
lines changed

src/L1L2RedisCache/L1L2RedisCache.cs

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ public class L1L2RedisCache(
3939
private SemaphoreSlim KeySemaphore { get; } =
4040
new SemaphoreSlim(1, 1);
4141

42-
/// <summary>
43-
/// Gets a value with the given key.
44-
/// </summary>
45-
/// <param name="key">A string identifying the requested value.</param>
46-
/// <returns>The located value or null.</returns>
42+
/// <inheritdoc />
4743
[SuppressMessage("Reliability", "CA2000")]
4844
public new byte[]? Get(string key)
4945
{
@@ -84,12 +80,7 @@ public class L1L2RedisCache(
8480
return value;
8581
}
8682

87-
/// <summary>
88-
/// Gets a value with the given key.
89-
/// </summary>
90-
/// <param name="key">A string identifying the requested value.</param>
91-
/// <param name="token">Optional. The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.</param>
92-
/// <returns>The System.Threading.Tasks.Task that represents the asynchronous operation, containing the located value or null.</returns>
83+
/// <inheritdoc />
9384
public new async Task<byte[]?> GetAsync(
9485
string key,
9586
CancellationToken token = default)
@@ -138,10 +129,7 @@ await semaphore
138129
return value;
139130
}
140131

141-
/// <summary>
142-
/// Removes the value with the given key.
143-
/// </summary>
144-
/// <param name="key">A string identifying the requested value.</param>
132+
/// <inheritdoc />
145133
[SuppressMessage("Reliability", "CA2000")]
146134
public new void Remove(string key)
147135
{
@@ -160,12 +148,7 @@ await semaphore
160148
}
161149
}
162150

163-
/// <summary>
164-
/// Removes the value with the given key.
165-
/// </summary>
166-
/// <param name="key">A string identifying the requested value.</param>
167-
/// <param name="token">Optional. The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.</param>
168-
/// <returns>The System.Threading.Tasks.Task that represents the asynchronous operation.</returns>
151+
/// <inheritdoc />
169152
public new async Task RemoveAsync(
170153
string key,
171154
CancellationToken token = default)
@@ -193,12 +176,7 @@ await base
193176
}
194177
}
195178

196-
/// <summary>
197-
/// Sets a value with the given key.
198-
/// </summary>
199-
/// <param name="key">A string identifying the requested value.</param>
200-
/// <param name="value">The value to set in the cache.</param>
201-
/// <param name="options">The cache options for the value.</param>
179+
/// <inheritdoc />
202180
[SuppressMessage("Reliability", "CA2000")]
203181
public new void Set(
204182
string key,
@@ -221,14 +199,7 @@ await base
221199
}
222200
}
223201

224-
/// <summary>
225-
/// Sets a value with the given key.
226-
/// </summary>
227-
/// <param name="key">A string identifying the requested value.</param>
228-
/// <param name="value">The value to set in the cache.</param>
229-
/// <param name="options">The cache options for the value.</param>
230-
/// <param name="token">Optional. The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.</param>
231-
/// <returns>The System.Threading.Tasks.Task that represents the asynchronous operation.</returns>
202+
/// <inheritdoc />
232203
public new async Task SetAsync(
233204
string key,
234205
byte[] value,

0 commit comments

Comments
 (0)