Esempio n. 1
0
        public IActionResult AddRedis(string content)
        {
            //Student stu = new Student()
            //{
            //    Name = "liu",
            //    Age = 10,
            //    Email = content
            //};


            //_redis.AddItemToList("redis_listlog", JsonConvert.SerializeObject(stu));
            //_redis.AddItemToList("redis_listlog", content);
            _redis.PubLishMsg("send_log", content);


            return(Redirect("index"));
        }