SharpRepository / SharpRepository

C# Generic Repository for use with Entity Framework, RavenDB and more with built-in caching options.
Other
658 stars 169 forks source link

Memcached Caching Core Support #198

Open KoriSeng opened 6 years ago

KoriSeng commented 6 years ago

I think it is possible for Memcached caching to support .net core as the c# driver has a fork for it

https://github.com/cnblogs/EnyimMemcachedCore

omarpiani commented 6 years ago

You are right, the missing of a .NET 4.x version makes me difficult to build a single package. I hoped that EnyimMemcached will unify this Core fork .. but this is not done yet.. I'll put hands over it soon

KoriSeng commented 6 years ago

@omarpiani Also i think something that might be related to caching.

Think it might be a valid caching client. Not entirely sure if it is just a quick replace.

Microsoft.Extensions.Caching.Redis Microsoft.Extensions.Caching.Memory

ServiceStack.Redis.Core

Thought it might help. Gonna test them out

omarpiani commented 6 years ago

I make a multi target version of Memcached in https://github.com/SharpRepository/SharpRepository/tree/develop-MemcachedCore.

The big problem is that Core version uses dependency injection of ILoggerFactory and configuration is on appconfig.json.

A good think is use MemcachedCore both Core MVC and MVC5 sample apps. If you can take a look and make a PR!