Strip doc comments from the Caching projects
Every /// line in GameCult.Caching and GameCult.Caching.MessagePack goes; they restated member names. Three blocks that state a rule stay as // comments: MaterializeMissingGlobals runs after hydration so persisted globals win, ExecuteTransactionAsync commits durably before the cache and observers advance, and CommitBatch implementations restore their staged view on failure. Both projects add NoWarn CS1591, since GenerateDocumentationFile is on in src/Directory.Build.props. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
360dd0ae2f
commit
60cbfdde6d
10 changed files with 7 additions and 717 deletions
|
|
@ -4,54 +4,27 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace GameCult.Caching.MessagePack
|
||||
{
|
||||
/// <summary>
|
||||
/// Options for opening a CultCache over the canonical single-file MessagePack backing store.
|
||||
/// </summary>
|
||||
public sealed class CultCacheOpenOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the document registry to use. When omitted, the shared registry is used.
|
||||
/// </summary>
|
||||
public CultDocumentRegistry? Registry { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the cache should pull the existing snapshot during open.
|
||||
/// </summary>
|
||||
public bool PullOnOpen { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the cache should flush attached stores when disposed.
|
||||
/// </summary>
|
||||
public bool FlushOnDispose { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the backing store should flush when disposed.
|
||||
/// </summary>
|
||||
public bool StoreFlushOnDispose { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the cache should use a paged directory store instead of one whole-file snapshot.
|
||||
/// </summary>
|
||||
public bool UseDirectoryStore { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Friendly MessagePack entrypoints for opening a CultCache with the canonical backing store.
|
||||
/// </summary>
|
||||
public static class CultCacheMessagePack
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a cache with the canonical single-file MessagePack backing store attached.
|
||||
/// </summary>
|
||||
public static CultCache Create(string filePath, CultCacheOpenOptions? options = null)
|
||||
{
|
||||
options ??= new CultCacheOpenOptions();
|
||||
return CreateCore(filePath, options, initializeGlobals: true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a cache with the canonical single-file MessagePack backing store attached and optionally pulls the on-disk snapshot.
|
||||
/// </summary>
|
||||
public static async Task<CultCache> OpenAsync(string filePath, CultCacheOpenOptions? options = null)
|
||||
{
|
||||
options ??= new CultCacheOpenOptions();
|
||||
|
|
|
|||
Loading…
Reference in a new issue