Skip to content

Commit f9fa898

Browse files
committed
Adds queue duplicate detection behavior docs
Introduces a queue behavior that automatically detects and discards duplicate entries in a queue based on a unique identifier using a cache. Also, adds "Foundatio" to the cSpell dictionary.
1 parent d102b7a commit f9fa898

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.vscode/settings.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"cSpell.words": [
33
"Dgram",
4-
"Sachin",
5-
"Xunit",
4+
"Foundatio",
65
"mygauge",
7-
"unscoped"
6+
"Sachin",
7+
"unscoped",
8+
"Xunit"
89
],
910
"msbuildProjectTools.nuget.includePreRelease": true
1011
}

src/Foundatio/Queues/DuplicateDetectionQueueBehavior.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
namespace Foundatio.Queues;
77

8+
/// <summary>
9+
/// Automatically detects and discards duplicate entries in a queue based on a unique identifier.
10+
/// </summary>
811
public class DuplicateDetectionQueueBehavior<T> : QueueBehaviorBase<T> where T : class
912
{
1013
private readonly ICacheClient _cacheClient;

0 commit comments

Comments
 (0)