1 write to _contentCache
aspire (1)
Documentation\Docs\DocsCache.cs (1)
38
_contentCache
= new FileBackedDocumentContentCache(memoryCache, executionContext, DocsCacheSubdirectory, logger);
20 references to _contentCache
aspire (20)
Documentation\Docs\DocsCache.cs (20)
42
=>
_contentCache
.GetAsync(key, cancellationToken);
45
=>
_contentCache
.SetAsync(key, content, cancellationToken);
48
=>
_contentCache
.GetETagAsync(url, cancellationToken);
51
=>
_contentCache
.SetETagAsync(url, etag, cancellationToken);
54
=>
_contentCache
.InvalidateAsync(key, cancellationToken);
58
var documents = await
_contentCache
.GetJsonAsync(_indexCacheKey, JsonSourceGenerationContext.Default.LlmsDocumentArray, cancellationToken: cancellationToken).ConfigureAwait(false);
71
var legacyDocuments = await
_contentCache
.GetJsonAsync(_legacyIndexCacheKey, JsonSourceGenerationContext.Default.LlmsDocumentArray, cancellationToken: cancellationToken).ConfigureAwait(false);
77
await
_contentCache
.SetJsonAsync(_indexCacheKey, legacyDocuments, JsonSourceGenerationContext.Default.LlmsDocumentArray, cancellationToken).ConfigureAwait(false);
85
await
_contentCache
.SetJsonAsync(_indexCacheKey, documents, JsonSourceGenerationContext.Default.LlmsDocumentArray, cancellationToken).ConfigureAwait(false);
91
var fingerprint = await
_contentCache
.GetAsync(_indexSourceFingerprintCacheKey, cancellationToken).ConfigureAwait(false);
103
var legacyFingerprint = await
_contentCache
.GetAsync(_legacyIndexSourceFingerprintCacheKey, cancellationToken).ConfigureAwait(false);
109
await
_contentCache
.SetAsync(_indexSourceFingerprintCacheKey, legacyFingerprint, cancellationToken).ConfigureAwait(false);
116
await
_contentCache
.SetAsync(_indexSourceFingerprintCacheKey, fingerprint, cancellationToken).ConfigureAwait(false);
129
var currentFingerprint = await
_contentCache
.GetAsync(_indexSourceFingerprintCacheKey, cancellationToken).ConfigureAwait(false);
135
var legacyFingerprint = await
_contentCache
.GetAsync(_legacyIndexSourceFingerprintCacheKey, cancellationToken).ConfigureAwait(false);
138
await
_contentCache
.SetAsync(_indexSourceFingerprintCacheKey, legacyFingerprint, cancellationToken).ConfigureAwait(false);
155
await
_contentCache
.InvalidateAsync(_llmsTxtUrl, cancellationToken).ConfigureAwait(false);
156
await
_contentCache
.SetETagAsync(_llmsTxtUrl, null, cancellationToken).ConfigureAwait(false);
166
await
_contentCache
.InvalidateJsonAsync(_legacyIndexCacheKey, cancellationToken).ConfigureAwait(false);
167
await
_contentCache
.InvalidateAsync(_legacyIndexSourceFingerprintCacheKey, cancellationToken).ConfigureAwait(false);