public PointingSession GetCacheData(string groupName) { PointingSession model; if (!MemoryCache.TryGetValue(groupName, out model)) { return(model = new PointingSession()); } return(model); }
public bool LoadCacheData(PointingSession model, string groupName) { MemoryCache.Set(groupName, model); return(MemoryCache.TryGetValue(groupName, out model)); }