public void CleanPur() { var typedClient = _redisClient.As<PurClass>(); typedClient.DeleteAll(); } public void RemovePur(string u_dataid,string u_purno) { var typedClient = _redisClient.As<PurClass>(); typedClient.Delete(typedClient.GetAll().Where(p => p.u_dataid == u_dataid) .Where(p => p.u_purno == u_purno).First()); } public void StorePur(PurClass customer) { var typedClient = _redisClient.As<PurClass>(); typedClient.Store(customer); } public IList<PurClass> AllPur() { var typedClient = _redisClient.As<PurClass>(); return typedClient.GetAll(); } public IList<PurClass> Pur(string u_dataid,string u_purno) { var typedClient = _redisClient.As<PurClass>(); return typedClient.GetAll().Where(p => p.u_dataid == u_dataid) .Where(p => p.u_purno.StartsWith(u_purno.Substring(0, 4))).ToList(); }