Reputation: 107
I'm using Visual Studio 2015 but am unable to resolve PooledRedisClientManager
in AppHost. Can anybody tell what the problem is?
ERROR : The type or namespace name 'PooledRedisClientManager' could not be found (are you missing a using directive or an assembly reference?)
using ServiceStack;
using System.Web.Mvc;
using System.Web.Routing;
using ServiceStack.Redis;
using Funq;
//APP HOST in Global.asax
public MyAppHost() : base("Services ", typeof(myServices).Assembly) { }
public override void Configure(Container container)
{
SetConfig(new HostConfig { HandlerFactoryPath = "api" });
container.Register<IRedisClientsManager>(new PooledRedisClientManager());
}
Upvotes: 0
Views: 189
Reputation: 143399
You need to download ServiceStack.Redis from NuGet:
PM> Install-Package ServiceStack.Redis
Upvotes: 1