/// <summary>
 /// Delete cache by regex pattern in Default DbId (0)
 /// </summary>
 /// <param name="_pattern"></param>
 public static List <string> GetKeyByPattern(string _pattern, int dbid)
 {
     try
     {
         lock (LogSetConnection)
         {
             return(RedisStackExchangeClient.GetKeys(dbid, _pattern));
         }
     }
     catch (Exception ex)
     {
         throw new RedisException();
     }
 }
        /// <summary>
        /// Delete cache by regex pattern
        /// </summary>
        /// <param name="dbid"></param>
        /// <param name="_pattern"></param>
        public static void DeleteKeys(string _pattern, int dbid = -1)
        {
            try
            {
                if (dbid == -1)
                {
                    dbid = DbId;
                }

                lock (LogSetConnection)
                {
                    RedisStackExchangeClient.DeleteKeys(dbid, _pattern);
                }
            }
            catch (Exception ex)
            {
                throw new RedisException();
            }
        }