public static void RegisterSubscribe(string subscript_key, NetServer svr)
 {
     try
     {
         Log.Information("sub {0}", subscript_key);
         ISubscriber sub = Cache.Instance.cache.GetSubscriber();
         sub.Subscribe(subscript_key, (channel, message) =>
         {
             try
             {
                 Log.Information($"redis msg {message}");
                 var msg = svr.CreateMessage();
                 msg.Write((string)message);
                 svr.SendUnconnectedToSelf(msg, true);
             }
             catch (Exception ex)
             {
                 Log.Error($"redis sub callback error {ex.ToString()}");
             }
         });
     }
     catch (Exception ex)
     {
         Log.Error($"redis sub error {ex.ToString()}");
     }
 }