Skip to content

Commit

Permalink
Fix project references and add dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-sunset committed Oct 6, 2022
1 parent f2e8db6 commit 2d0ac70
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/bin
**/obj
**/BenchmarkDotNet.Artifacts
17 changes: 0 additions & 17 deletions src/FastCache.Benchmarks/Defaults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,6 @@ public class Defaults
[GlobalSetup]
public void Initialize()
{
Services.CacheManager.SuspendEviction<string, string>();
Services.CacheManager.SuspendEviction<(string, string), string>();
Services.CacheManager.SuspendEviction<(string, string, string), string>();
Services.CacheManager.SuspendEviction<(string, string, string, string), string>();
Services.CacheManager.SuspendEviction<(string, string, string, string, string, string, string), string>();

Services.CacheManager.SuspendEviction<int, string>();
Services.CacheManager.SuspendEviction<(int, int), string>();
Services.CacheManager.SuspendEviction<(int, int, int), string>();
Services.CacheManager.SuspendEviction<(int, int, int, int), string>();
Services.CacheManager.SuspendEviction<(int, int, int, int, int, int, int), string>();

Services.CacheManager.SuspendEviction<(string, int), string>();
Services.CacheManager.SuspendEviction<(string, int, string), string>();
Services.CacheManager.SuspendEviction<(string, int, string, int), string>();
Services.CacheManager.SuspendEviction<(string, int, string, int, string, int, string), string>();

"single".Cache("one", OneHour);
"two".Cache("one", "two", OneHour);
"three".Cache("one", "two", "three", OneHour);
Expand Down
4 changes: 2 additions & 2 deletions src/FastCache.Benchmarks/FastCache.Benchmarks.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -23,7 +23,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\FastCache.Cached\FastCache.Cached.csproj" />
<ProjectReference Include="..\FastCache.Cached\FastCache.Cached.csproj" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/FastCache.Cached/FastCache.Cached.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Credit to Vladimir Sadov for his implementation of NonBlocking.ConcurrentDiction
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<NoWarn>CS1591</NoWarn>
<DefineConstants>$(DefineConstants)</DefineConstants>
</PropertyGroup>

Expand Down

0 comments on commit 2d0ac70

Please sign in to comment.