You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/L1L2RedisCache/L1L2RedisCache.cs
+6-35Lines changed: 6 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,7 @@ public class L1L2RedisCache(
39
39
privateSemaphoreSlimKeySemaphore{get;}=
40
40
newSemaphoreSlim(1,1);
41
41
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 />
47
43
[SuppressMessage("Reliability","CA2000")]
48
44
publicnewbyte[]?Get(stringkey)
49
45
{
@@ -84,12 +80,7 @@ public class L1L2RedisCache(
84
80
returnvalue;
85
81
}
86
82
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 />
93
84
publicnewasyncTask<byte[]?>GetAsync(
94
85
stringkey,
95
86
CancellationTokentoken=default)
@@ -138,10 +129,7 @@ await semaphore
138
129
returnvalue;
139
130
}
140
131
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 />
145
133
[SuppressMessage("Reliability","CA2000")]
146
134
publicnewvoidRemove(stringkey)
147
135
{
@@ -160,12 +148,7 @@ await semaphore
160
148
}
161
149
}
162
150
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 />
169
152
publicnewasyncTaskRemoveAsync(
170
153
stringkey,
171
154
CancellationTokentoken=default)
@@ -193,12 +176,7 @@ await base
193
176
}
194
177
}
195
178
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 />
202
180
[SuppressMessage("Reliability","CA2000")]
203
181
publicnewvoidSet(
204
182
stringkey,
@@ -221,14 +199,7 @@ await base
221
199
}
222
200
}
223
201
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>
0 commit comments