stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace StellaOps.Provcache;
|
||||
|
||||
public sealed partial class ProvcacheOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Chunk size for evidence storage in bytes.
|
||||
/// Default: 64 KB.
|
||||
/// </summary>
|
||||
[Range(1024, 1048576, ErrorMessage = "ChunkSize must be between 1 KB and 1 MB")]
|
||||
public int ChunkSize { get; set; } = 65536;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum chunks per cache entry.
|
||||
/// Limits evidence size for a single entry.
|
||||
/// Default: 1000.
|
||||
/// </summary>
|
||||
[Range(1, 100000, ErrorMessage = "MaxChunksPerEntry must be between 1 and 100000")]
|
||||
public int MaxChunksPerEntry { get; set; } = 1000;
|
||||
}
|
||||
Reference in New Issue
Block a user