Skip to content

Commit c0ba596

Browse files
committed
GenericRepository.FirstOrDefaultAsync: Fix logging issue with cache #24
1 parent 3322b3b commit c0ba596

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Vivarni.DDD.Core/Vivarni.DDD.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFrameworks>netstandard2.0</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
7-
<Version>2.1.0</Version>
7+
<Version>2.1.1</Version>
88
<Authors>Michaël Vittorelli; Anthony Van Dooren</Authors>
99
<RepositoryUrl>https://github.com/vivarni/vivarni.domain</RepositoryUrl>
1010
<PackageProjectUrl>https://github.com/vivarni/vivarni.domain</PackageProjectUrl>

src/Vivarni.DDD.Infrastructure/Repositories/GenericRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public async Task<T> FirstAsync(ISpecification<T> spec, CancellationToken cancel
210210
cacheHit = true;
211211
result = await _cacheProvider.GetAsync(spec.CacheKey!, async () =>
212212
{
213-
cacheHit |= false;
213+
cacheHit = false;
214214
return await specificationResult.FirstOrDefaultAsync(cancellationToken);
215215
}, ttl, forceRefresh);
216216
}

src/Vivarni.DDD.Infrastructure/Vivarni.DDD.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
7-
<Version>2.1.0</Version>
7+
<Version>2.1.1</Version>
88
<Authors>Michaël Vittorelli; Anthony Van Dooren</Authors>
99
<RepositoryUrl>https://github.com/vivarni/vivarni.domain</RepositoryUrl>
1010
<PackageProjectUrl>https://github.com/vivarni/vivarni.domain</PackageProjectUrl>

0 commit comments

Comments
 (0)