-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from jaredmoo/LookupFromCacheNetCore
Ability to specify lookup options
- Loading branch information
Showing
13 changed files
with
563 additions
and
82 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
35 changes: 35 additions & 0 deletions
35
Src/ElasticScale.Client/ShardManagement/Shard/LookupOptions.cs
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement | ||
{ | ||
/// <summary> | ||
/// Specifies where mapping lookup operations will search for mappings. | ||
/// </summary> | ||
[Flags] | ||
public enum LookupOptions : int | ||
{ | ||
/// <summary> | ||
/// Default invalid kind of lookup options. | ||
/// </summary> | ||
None = 0, | ||
|
||
/// <summary> | ||
/// Attempt to lookup in the local cache. | ||
/// </summary> | ||
/// <remarks> | ||
/// If LookupInCache and LookupInStore are both specified, the cache will be searched first, then the store. | ||
/// </remarks> | ||
LookupInCache = 1 << 0, | ||
|
||
/// <summary> | ||
/// Attempt to lookup in the global shard map store. | ||
/// </summary> | ||
/// <remarks> | ||
/// If LookupInCache and LookupInStore are both specified, the cache will be searched first, then the store. | ||
/// </remarks> | ||
LookupInStore = 1 << 1, | ||
} | ||
} |
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
Oops, something went wrong.