private static void baseTest() { var redis = new RedisHelper(); redis.Set<string>(RedisKeys.TestKey, DateTime.Now.ToString()); var d = redis.Get<string>(RedisKeys.TestKey); redis.Remove(RedisKeys.TestKey); d = redis.Get<string>(RedisKeys.TestKey); }
static void Main(string[] args) { var redis = new RedisHelper(); redis.Set<string>("aa", DateTime.Now.ToString()); var d = redis.Get<string>("aa"); redis.Remove("aa"); d = redis.Get<string>("aa"); }
public StudentDal(IConfiguration configuration, RedisHelper.RedisHelper redisHelper) { this.connectionString = configuration.GetSection("connectionString").Value; this.redisConf = configuration.GetSection("redisConf").Value; this.RedisHelper = redisHelper; }