Skip to content

Commit b749e05

Browse files
committed
Added Memcached Caching
1 parent 09dedd9 commit b749e05

File tree

874 files changed

+285160
-101757
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

874 files changed

+285160
-101757
lines changed
43.5 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

OnlineStoreWebApi/OnlineStore.Business/App.config

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<configSections>
4-
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
4+
55
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
6-
</configSections>
6+
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
77
<entityFramework>
88
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
99
<providers>
@@ -14,11 +14,19 @@
1414
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
1515
<dependentAssembly>
1616
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
17-
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
17+
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
1818
</dependentAssembly>
1919
<dependentAssembly>
2020
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
21-
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
21+
<bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
22+
</dependentAssembly>
23+
<dependentAssembly>
24+
<assemblyIdentity name="Remotion.Linq" publicKeyToken="fee00910d6e5f53b" culture="neutral" />
25+
<bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
26+
</dependentAssembly>
27+
<dependentAssembly>
28+
<assemblyIdentity name="Remotion.Linq.EagerFetching" publicKeyToken="fee00910d6e5f53b" culture="neutral" />
29+
<bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
2230
</dependentAssembly>
2331
</assemblyBinding>
2432
</runtime>

OnlineStoreWebApi/OnlineStore.Business/OnlineStore.Business.csproj

+14-7
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,35 @@
3131
<WarningLevel>4</WarningLevel>
3232
</PropertyGroup>
3333
<ItemGroup>
34-
<Reference Include="AutoMapper, Version=6.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
35-
<HintPath>..\packages\AutoMapper.6.1.1\lib\net45\AutoMapper.dll</HintPath>
34+
<Reference Include="AutoMapper, Version=6.2.2.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
35+
<HintPath>..\packages\AutoMapper.6.2.2\lib\net45\AutoMapper.dll</HintPath>
3636
</Reference>
3737
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
38-
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
38+
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
3939
</Reference>
4040
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
41-
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll</HintPath>
41+
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
4242
</Reference>
4343
<Reference Include="FluentValidation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7de548da2fbae0f0, processorArchitecture=MSIL">
44-
<HintPath>..\packages\FluentValidation.7.1.1\lib\net45\FluentValidation.dll</HintPath>
44+
<HintPath>..\packages\FluentValidation.7.5.2\lib\net45\FluentValidation.dll</HintPath>
4545
</Reference>
46-
<Reference Include="Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7, processorArchitecture=MSIL">
47-
<HintPath>..\packages\Ninject.3.2.2.0\lib\net45-full\Ninject.dll</HintPath>
46+
<Reference Include="Ninject, Version=3.3.4.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7, processorArchitecture=MSIL">
47+
<HintPath>..\packages\Ninject.3.3.4\lib\net45\Ninject.dll</HintPath>
4848
</Reference>
4949
<Reference Include="PostSharp, Version=4.2.17.0, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7, processorArchitecture=MSIL">
5050
<HintPath>..\packages\PostSharp.4.2.17\lib\net35-client\PostSharp.dll</HintPath>
5151
<Private>True</Private>
5252
</Reference>
5353
<Reference Include="System" />
54+
<Reference Include="System.ComponentModel.Annotations, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
55+
<HintPath>..\packages\System.ComponentModel.Annotations.4.4.1\lib\net461\System.ComponentModel.Annotations.dll</HintPath>
56+
</Reference>
5457
<Reference Include="System.ComponentModel.DataAnnotations" />
58+
<Reference Include="System.ComponentModel.Primitives, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
59+
<HintPath>..\packages\System.ComponentModel.Primitives.4.3.0\lib\net45\System.ComponentModel.Primitives.dll</HintPath>
60+
</Reference>
5561
<Reference Include="System.Core" />
62+
<Reference Include="System.Runtime.Serialization" />
5663
<Reference Include="System.Xml.Linq" />
5764
<Reference Include="System.Data.DataSetExtensions" />
5865
<Reference Include="Microsoft.CSharp" />

OnlineStoreWebApi/OnlineStore.Business/Services/ProductService.cs

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AutoMapper;
2020
using OnlineStore.Entity.ComplexType;
2121
using OnlineStore.Core.CrossCuttingConcerns.Caching.Redis;
22+
using OnlineStore.Core.CrossCuttingConcerns.Caching.Memcached;
2223

2324
namespace OnlineStore.Business.Services
2425
{
@@ -60,6 +61,7 @@ public Product Get(Expression<Func<Product, bool>> predicate)
6061

6162
//[CacheAspect(typeof(MemoryCacheManager))]
6263
//[CacheAspect(typeof(RedisCacheManager), 60, typeof(Product))]
64+
[CacheAspect(typeof(MemcachedManager), 60, typeof(Product))]
6365
[MethodWorkingTimeAspect(2)]
6466
public List<Product> GetAll(Expression<Func<Product, bool>> predicate = null)
6567
{
Binary file not shown.

0 commit comments

Comments
 (0)