public T GetHash <T>(string key, ICacheMap <T> map) where T : class { var ret = _cacher.GetHash(key); var element = map.DeserializeHash(ret); return(element); }
public UserInfo GetUserInfo(string key, int userID) { return(_redisCacher.GetHash <UserInfo>(key, userID.ToString())); }