Skip to content

Commit

Permalink
Add Index to Load on LcgNode
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Oct 11, 2024
1 parent fc5692b commit f6fcd76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/Redis/LcgNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace OpenShock.Common.Redis;

[Document(StorageType = StorageType.Json, IndexName = "lcg-online-v2")]
[Document(StorageType = StorageType.Json, IndexName = "lcg-online-v3")]
public sealed class LcgNode
{
[RedisIdField] [Indexed] public required string Fqdn { get; set; }
[Indexed] public required string Country { get; set; }
public required byte Load { get; set; }
[Indexed] public required byte Load { get; set; }
[Indexed] public string Environment { get; set; } = "Production";

}

0 comments on commit f6fcd76

Please sign in to comment.