Skip to content

Commit cd150f6

Browse files
committed
v2.0.1: Compatibility with Polly v6.1.1
1 parent fae6a05 commit cd150f6

File tree

8 files changed

+18
-11
lines changed

8 files changed

+18
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Polly.Caching.MemoryCache change log
22

3+
## 2.0.1
4+
- Upgrade for compatibility with Polly v6.1.1
5+
36
## 2.0.0
47
- Provide a single signed package only.
58
- Reference Polly v6.0.1.

GitVersionConfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
next-version: 2.0.0
1+
next-version: 2.0.1

src/Polly.Caching.Memory.NetStandard13/Polly.Caching.Memory.NetStandard13.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</ItemGroup>
3030
<ItemGroup>
3131
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="1.1.2" />
32-
<PackageReference Include="Polly" Version="6.0.1" />
32+
<PackageReference Include="Polly" Version="6.1.1" />
3333
</ItemGroup>
3434
<Import Project="..\Polly.Caching.Memory.Shared\Polly.Caching.Memory.Shared.projitems" Label="Shared" />
3535
</Project>

src/Polly.Caching.Memory.NetStandard13/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
[assembly: AssemblyTitle("Polly.Caching.Memory")]
66
[assembly: AssemblyVersion("2.0.0.0")]
7-
[assembly: AssemblyFileVersion("2.0.0.0")]
8-
[assembly: AssemblyInformationalVersion("2.0.0.0")]
7+
[assembly: AssemblyFileVersion("2.0.1.0")]
8+
[assembly: AssemblyInformationalVersion("2.0.1.0")]
99
[assembly: CLSCompliant(false)] // Because Microsoft.Extensions.Caching.Memory.MemoryCache, on which Polly.Caching.MemoryCache.NetStandard13 depends, is not CLSCompliant.
1010

1111
[assembly: InternalsVisibleTo("Polly.Caching.Memory.NetStandard13.Specs")]

src/Polly.Caching.Memory.NetStandard20/Polly.Caching.Memory.NetStandard20.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</ItemGroup>
3030
<ItemGroup>
3131
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.0.2" />
32-
<PackageReference Include="Polly" Version="6.0.1" />
32+
<PackageReference Include="Polly" Version="6.1.1" />
3333
</ItemGroup>
3434
<Import Project="..\Polly.Caching.Memory.Shared\Polly.Caching.Memory.Shared.projitems" Label="Shared" />
3535
</Project>

src/Polly.Caching.Memory.NetStandard20/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
[assembly: AssemblyTitle("Polly.Caching.Memory")]
66
[assembly: AssemblyVersion("2.0.0.0")]
7-
[assembly: AssemblyFileVersion("2.0.0.0")]
8-
[assembly: AssemblyInformationalVersion("2.0.0.0")]
7+
[assembly: AssemblyFileVersion("2.0.1.0")]
8+
[assembly: AssemblyInformationalVersion("2.0.1.0")]
99
[assembly: CLSCompliant(false)] // Because Microsoft.Extensions.Caching.Memory.MemoryCache, on which Polly.Caching.MemoryCache.NetStandard13 depends, is not CLSCompliant.
1010

1111
[assembly: InternalsVisibleTo("Polly.Caching.Memory.NetStandard20.Specs")]

src/Polly.Caching.Memory.Shared/MemoryCacheProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void Put(string key, object value, Ttl ttl)
7878
public Task<object> GetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext)
7979
{
8080
cancellationToken.ThrowIfCancellationRequested();
81-
return TaskHelper.FromResult(Get(key));
81+
return Task.FromResult(Get(key));
8282
// (With C#7.0, a ValueTask<> approach would be preferred, but some of our tfms do not support that. TO DO: Implement it, with preprocessor if/endif directives, for NetStandard)
8383
}
8484

@@ -96,7 +96,7 @@ public Task PutAsync(string key, object value, Ttl ttl, CancellationToken cancel
9696
{
9797
cancellationToken.ThrowIfCancellationRequested();
9898
Put(key, value, ttl);
99-
return TaskHelper.EmptyTask;
99+
return Task.CompletedTask;
100100
// (With C#7.0, a ValueTask<> approach would be preferred, but some of our tfms do not support that. TO DO: Implement it, with preprocessor if/endif directives, for NetStandard)
101101
}
102102
}

src/Polly.Caching.Memory.nuspec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<tags>Polly Cache Caching Cache-aside</tags>
1414
<copyright>Copyright © 2018, App vNext</copyright>
1515
<releaseNotes>
16+
2.0.1
17+
---------------------
18+
- Upgrade for compatibility with Polly v6.1.1
19+
1620
2.0.0
1721
---------------------
1822
- Provide a single signed package only.
@@ -44,12 +48,12 @@
4448
<dependencies>
4549
<group targetFramework="netstandard1.3">
4650
<dependency id="NETStandard.Library" version="1.6.1" />
47-
<dependency id="Polly" version="6.0.1" />
51+
<dependency id="Polly" version="6.1.1" />
4852
<dependency id="Microsoft.Extensions.Caching.Memory" version="1.1.2" />
4953
</group>
5054
<group targetFramework="netstandard2.0">
5155
<dependency id="NETStandard.Library" version="2.0.0" />
52-
<dependency id="Polly" version="6.0.1" />
56+
<dependency id="Polly" version="6.1.1" />
5357
<dependency id="Microsoft.Extensions.Caching.Memory" version="2.0.2" />
5458
</group>
5559
</dependencies>

0 commit comments

Comments
 (0)