forked from microsoft/garnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'microsoft:main' into main
- Loading branch information
Showing
142 changed files
with
14,842 additions
and
1,575 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
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,6 +1,6 @@ | ||
<Project> | ||
<!-- Versioning property for builds and packages --> | ||
<PropertyGroup> | ||
<VersionPrefix>1.0.49</VersionPrefix> | ||
<VersionPrefix>1.0.52</VersionPrefix> | ||
</PropertyGroup> | ||
</Project> |
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,26 +1,38 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
using BenchmarkDotNet.Code; | ||
using Garnet.server; | ||
|
||
namespace BDN.benchmark.Lua | ||
{ | ||
/// <summary> | ||
/// Cluster parameters | ||
/// Lua parameters | ||
/// </summary> | ||
public struct LuaParams | ||
public readonly struct LuaParams | ||
{ | ||
public readonly LuaMemoryManagementMode Mode { get; } | ||
public readonly bool MemoryLimit { get; } | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public LuaParams() | ||
public LuaParams(LuaMemoryManagementMode mode, bool memoryLimit) | ||
{ | ||
Mode = mode; | ||
MemoryLimit = memoryLimit; | ||
} | ||
|
||
/// <summary> | ||
/// Get the equivalent <see cref="LuaOptions"/>. | ||
/// </summary> | ||
public LuaOptions CreateOptions() | ||
=> new(Mode, MemoryLimit ? "2m" : ""); | ||
|
||
/// <summary> | ||
/// String representation | ||
/// </summary> | ||
public override string ToString() | ||
{ | ||
return "None"; | ||
} | ||
=> $"{Mode},{(MemoryLimit ? "Limit" : "None")}"; | ||
} | ||
} |
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.