Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GetEvalStr method not implemented ServiceStack.Redis RedisClient

I'm trying out the ServiceStack.Redis library for connecting to Redis and for some reason I cant create an instance of the RedisClient class, whenever I do...

RedisClient redisClient = new RedisClient();

I get...

Method 'GetEvalStr' in type 'ServiceStack.Redis.RedisClient' from assembly 'ServiceStack.Redis, Version=3.9.37.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

The weirdest part is it stops me from debugging the method containing that line. i.e. when I try to call the method which contains it...

Cache.Get(key)

I cant step through it.

Any ideas?

FYI im using the latest version available on NuGet (version 3.9.37).

like image 628
electricsheep Avatar asked Jun 15 '26 20:06

electricsheep


1 Answers

You have a dirty dll, where you're using an old version of ServiceStack.Redis.dll which does not match the implementation in v3.9.37 version of ServiceStack.Interfaces.dll.

First make sure you have all of ServiceStack's components updated. If that doesn't work clear out all your existing NuGet packages of ServiceStack (i.e. delete the /packages folder and packages.config file) and re-install them from NuGet again.

like image 166
mythz Avatar answered Jun 18 '26 10:06

mythz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!