private bool ExistInRedis(string code, DateTime date) { var key = string.Format(RedisKeyFormat, code.ToUpper(), date.ToString("yyyy-MM-dd")); return(redisReader.ContainsKey(key)); }