-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make key-value input parameter to all MultiStoreAsync methods IDictio…
…nary instead of concrete dictionary.
- Loading branch information
1 parent
1afbe14
commit 2aa5157
Showing
3 changed files
with
84 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
namespace Aer.Memcached.Client.Models; | ||
|
||
/// <summary> | ||
/// Represents a multi-cluster cache synchronization key-value DTO. | ||
/// </summary> | ||
/// <typeparam name="T">The type of the value.</typeparam> | ||
public class CacheSyncModel<T> | ||
{ | ||
public Dictionary<string, T> KeyValues { get; set; } | ||
/// <summary> | ||
/// Gets or sets the key-values to sync. | ||
/// </summary> | ||
public IDictionary<string, T> KeyValues { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the key-value items expiration time. | ||
/// </summary> | ||
public DateTimeOffset? ExpirationTime { get; set; } | ||
} |