获取错误超时使用c#中的StackExchange.Redis执行获取?

获取错误超时使用c#中的StackExchange.Redis执行获取?,c#,asp.net-mvc,redis,C#,Asp.net Mvc,Redis,我创建了一个演示,并与StackExchange.Redis一起使用,使用Asp.net mvc和c#缓存一些值。但我无法连接本地系统中的redis缓存。 这是带有连接字符串的我的redis缓存类: public class RedisCache{ private static readonly Lazy<ConnectionMultiplexer> _lazyConnection = new Lazy<ConnectionMultiplexer>(() =>

我创建了一个演示,并与StackExchange.Redis一起使用,使用Asp.net mvc和c#缓存一些值。但我无法连接本地系统中的redis缓存。 这是带有连接字符串的我的redis缓存类:

 public class RedisCache{
 private static readonly Lazy<ConnectionMultiplexer> _lazyConnection = new Lazy<ConnectionMultiplexer>(() => { return ConnectionMultiplexer.Connect("abv,password=63sd,ssl=True,abortConnect=False,allowAdmin=true"); });

    private static ConnectionMultiplexer _connection
    {
        get { return _lazyConnection.Value; }
    }
}

 public T Get<T>(string key, RedisDatabase database)
    {
        var result = default(T);
        var value = _connection.GetDatabase((int)database).StringGet(key);
        if (!value.IsNull)
        {
            result = JsonConvert.DeserializeObject<T>(value);
        }

        return result;
    }

任何人都知道如何修复此错误,因此请告诉我。

您是否阅读了它建议的链接?@mjwills您对此问题有何想法我如何解决?我已经检查了给你们的链接,但不明白是什么问题。
Timeout performing GET UserSearch, inst: 1, mgr: Inactive, err: never,             queue: 2, qu: 0, qs: 2, qc: 0, wr: 0, wq: 0, in: 0, ar: 0,
 clientName: Abc-PC, serverEndpoint: Unspecified/abv, keyHashSlot: 322, IOCP:
 (Busy=0,Free=1000,Min=4,Max=1000), WORKER:     (Busy=1,Free=32766,Min=4,Max=32767) (Please take a look at this article for    some common client-side 
 issues that can cause timeouts: http://stackexchange.github.io/StackExchange.Redis/Timeouts)