以下给出了超时异常。 ListLength
和ListRange
命令完全正常。
public static Lazy<ConnectionMultiplexer> lazyConnection = new Lazy<ConnectionMultiplexer>(() =>
{
string connStr = ConfigurationManager.AppSettings["AzureRedisConnectionString"].ToString();
return ConnectionMultiplexer.Connect(connStr);
});
public static ConnectionMultiplexer Connection
{
get
{
return lazyConnection.Value;
}
}
public static IDatabase RedisDb
{
get
{
return Connection.GetDatabase();
}
}
db.ListTrim("MyKeyName", 0, 4);
例外是:
超时执行LTRIM MyKeyName,inst:0,mgr:ExecuteSelect,错误: never,队列:1,qu:1,qs:0,qc:0,wr:0,wq:1,in:0,ar:0, IOCP :(忙碌= 0,自由= 1000,最小值= 4,最大值= 1000),工人: (Busy = 1,Free = 1022,Min = 4,Max = 1023),clientName:HS-PC at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl [T](消息 消息,ResultProcessor
1 processor, ServerEndPoint server) in c:\TeamCity\buildAgent\work\3ae0647004edff78\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 1927 at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor
1处理器,ServerEndPoint服务器) C:\ TeamCity的\ buildAgent \工作\ 3ae0647004edff78 \ StackExchange.Redis \ StackExchange \ Redis的\ RedisBase.cs:行 80在StackExchange.Redis.RedisDatabase.ListTrim(RedisKey键,Int64 启动,Int64停止,CommandFlags标志) C:\ TeamCity的\ buildAgent \工作\ 3ae0647004edff78 \ StackExchange.Redis \ StackExchange \ Redis的\ RedisDatabase.cs:行 796} System.SystemException {System.TimeoutException}