Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmwebb-lv committed Aug 12, 2024
1 parent e6c5343 commit be61b5e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Examples/Caching/Examples.Caching.MemoryCaching/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{
// Configure RCommon
services.AddRCommon()
.WithJsonSerialization<JsonNetBuilder>()
.WithJsonSerialization<JsonNetBuilder>() // Distributed memory caching requires serialization
.WithMemoryCaching<MemoryCachingBuilder>(cache =>
{
cache.Configure(x =>
Expand Down
6 changes: 6 additions & 0 deletions Src/RCommon.Caching/CachingOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ namespace RCommon.Caching
{
public class CachingOptions
{
public CachingOptions()
{

}


}
}
11 changes: 7 additions & 4 deletions Src/RCommon.Caching/RCommon.Caching.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\RCommon.Core\RCommon.Core.csproj" />
Expand Down
1 change: 1 addition & 0 deletions Src/RCommon.MemoryCache/RCommon.MemoryCache.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
</ItemGroup>


<ItemGroup>
<ProjectReference Include="..\..\Src\RCommon.Caching\RCommon.Caching.csproj" />
</ItemGroup>
Expand Down

0 comments on commit be61b5e

Please sign in to comment.