Ejemplo n.º 1
0
 protected override void ProcessError(RedisResult result, RedisMessage message, bool includeDetail)
 {
     try {
         var msg = result.Error().Message;
         if (msg.StartsWith("NOSCRIPT"))
         {   // only way of unloading is to unload all ("SCRIPT FLUSH")... so our
             // existing cache is now completely toast
             connection.ResetScriptCache();
         }
     } catch {
         /* best efforts only */
     }
     base.ProcessError(result, message, includeDetail);
 }