阿里雲 Redis 服務遇到的問題

ERR unknown command eval 
 說明: 執行當前 Web 請求期間,出現未經處理的異常。請檢查堆棧跟蹤信息,以瞭解有關該錯誤以及代碼中致使錯誤的出處的詳細信息。 

 異常詳細信息: StackExchange.Redis.RedisServerException: ERR unknown command eval

源錯誤: 

執行當前 Web 請求期間生成了未經處理的異常。能夠使用下面的異常堆棧跟蹤信息肯定有關異常緣由和發生位置的信息。  

堆棧跟蹤: 

[RedisServerException: ERR unknown command eval]
   StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl(Message message, ResultProcessor`1 processor, ServerEndPoint server) +3128
   StackExchange.Redis.RedisBase.ExecuteSync(Message message, ResultProcessor`1 processor, ServerEndPoint server) +122
   StackExchange.Redis.RedisDatabase.ScriptEvaluate(String script, RedisKey[] keys, RedisValue[] values, CommandFlags flags) +279
   Microsoft.Web.Redis.<>c__DisplayClass4.<Eval>b__3() +55
   Microsoft.Web.Redis.StackExchangeClientConnection.RetryForScriptNotFound(Func`1 redisOperation) +135
   Microsoft.Web.Redis.StackExchangeClientConnection.RetryLogic(Func`1 redisOperation) +144
   Microsoft.Web.Redis.StackExchangeClientConnection.Eval(String script, String[] keyArgs, Object[] valueArgs) +542
   Microsoft.Web.Redis.RedisConnectionWrapper.Set(ISessionStateItemCollection data, Int32 sessionTimeout) +89
   Microsoft.Web.Redis.RedisSessionStateProvider.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +833
   System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +909
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92

諮詢阿里雲的技術人員,默認阿里雲redis服務不支持eval命令,可是能夠人工開通。redis

鏈接字符串問題windows

//MS
//var conn = ConnectionMultiplexer.Connect("contoso5.redis.cache.windows.net,ssl=true,password=...");

//實例ID.redis.rds.aliyuncs.com:6379,password=實例ID:密碼
//var connection = ConnectionMultiplexer.Connect("r-uf6e12fbebe0a0e4.redis.rds.aliyuncs.com:6379,password=r-uf6e12fbebe0a0e4:xxx");
相關文章
相關標籤/搜索