Beispiel #1
0
        public PointingSession GetCacheData(string groupName)
        {
            PointingSession model;

            if (!MemoryCache.TryGetValue(groupName, out model))
            {
                return(model = new PointingSession());
            }

            return(model);
        }
Beispiel #2
0
 public bool LoadCacheData(PointingSession model, string groupName)
 {
     MemoryCache.Set(groupName, model);
     return(MemoryCache.TryGetValue(groupName, out model));
 }