TheCloudlessSky / NHibernate.Caches.Redis

An NHibernate caching provider for Redis.
MIT License
59 stars 39 forks source link

Not implement exception with method 'GetAsync' #36

Closed futurify-ydang closed 5 years ago

futurify-ydang commented 5 years ago

I am using NHibernate.Cache.Redis for my project in .NET Core 2.2 and faced this exception. Please give me a help! Thanks System.TypeLoadException: Method 'GetAsync' in type 'NHibernate.Caches.Redis.RedisCache' from assembly 'NHibernate.Caches.Redis, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

And another question is does NHibernate.Caches.Redis support .NET core?

TheCloudlessSky commented 5 years ago

See #31, #32, #33 for NHibernate >= 5 issues (the not implemented exception). I have not tested this project with .NET Core, so I'm not sure if it works.

futurify-ydang commented 5 years ago

image its working well in aspnet core 2.2 . The only one thing need to do is custom a serializer for us. Because NetDataContractCacheSerializer was not still exist in Net Core

futurify-ydang commented 5 years ago

The exception has been thrown. Any ideas? image