Delete CultManagedDocument and both Document<T> openers
CultManagedDocument<T>, CultCache.Document<T> and CultNetDatabase.Document<T> had no consumer outside the tests removed with the SoA table. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
fe7e5fbe37
commit
d26f357f3e
3 changed files with 0 additions and 90 deletions
|
|
@ -1380,20 +1380,6 @@ namespace GameCult.Caching
|
|||
/// </summary>
|
||||
public CultDocumentRegistry Registry => _registry;
|
||||
|
||||
/// <summary>
|
||||
/// Opens a reactive POCO presentation for one cache-managed document.
|
||||
/// </summary>
|
||||
public CultManagedDocument<T> Document<T>(CultRecordKey key) where T : class
|
||||
{
|
||||
return new CultManagedDocument<T>(
|
||||
key,
|
||||
() => Get<T>(key),
|
||||
async value => { await UpsertAsync(value, new CultRecordHandle<T>(key)).ConfigureAwait(false); },
|
||||
WatchRecord<T>(key)
|
||||
.Where(change => change.Document != null)
|
||||
.Select(change => change.Document!));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Watches all local cache changes assignable to the requested document type.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue