无法使用PooledRedisClientManager

时间:2016-04-13 10:25:41

标签: redis visual-studio-2015 servicestack

您好使用Visual Studio 2015,无法在AppHost中解析PooledRedisClientManager。谁能注意到问题是什么??

错误:找不到类型或命名空间名称'PooledRedisClientManager'(您是否缺少using指令或程序集引用?)

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());
    }

1 个答案:

答案 0 :(得分:1)

您需要来自NuGet的download ServiceStack.Redis

<meta name="viewport"content="width=device-width,shrink-to-fit=no">