22 lines
664 B
C#
22 lines
664 B
C#
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;
|
|
}
|