diff options
Diffstat (limited to 'VNLib.Data.Caching/src/WaitForChangeResult.cs')
-rw-r--r-- | VNLib.Data.Caching/src/WaitForChangeResult.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/VNLib.Data.Caching/src/WaitForChangeResult.cs b/VNLib.Data.Caching/src/WaitForChangeResult.cs new file mode 100644 index 0000000..a309c7c --- /dev/null +++ b/VNLib.Data.Caching/src/WaitForChangeResult.cs @@ -0,0 +1,21 @@ +namespace VNLib.Data.Caching +{ + /// <summary> + /// The result of a cache server change event + /// </summary> + public readonly struct WaitForChangeResult + { + /// <summary> + /// The operation status code + /// </summary> + public readonly string Status { get; init; } + /// <summary> + /// The current (or old) id of the element that changed + /// </summary> + public readonly string CurrentId { get; init; } + /// <summary> + /// The new id of the element that changed + /// </summary> + public readonly string NewId { get; init; } + } +} |