public void InsertAsync(string sessionId, string key, object value) { Alachisoft.NCache.Web.Caching.Cache cache = null; object obj = null; GetCache(sessionId, key, out obj, "", "", out cache, false); if (cache != null) { cache.InsertAsync(key, TagUtil.CreateTaggedCacheItem(value), null, null, null); } }
public void InsertAsync(string sessionId, string key, object value, CacheDependency dependency, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority) { Alachisoft.NCache.Web.Caching.Cache cache = null; object obj = null; GetCache(sessionId, key, out obj, "", "", out cache, false); if (cache != null) { cache.InsertAsync(key, TagUtil.CreateTaggedCacheItem(value, dependency, absoluteExpiration, slidingExpiration, priority), DSWriteOption.None, null); } }
public void InsertAsync(string sessionId, string key, CacheItem item, string group, string subGroup) { Alachisoft.NCache.Web.Caching.Cache cache = null; object obj = null; GetCache(sessionId, key, out obj, group, subGroup, out cache, false); if (cache != null) { item.Tags = new Runtime.Caching.Tag[] { new Runtime.Caching.Tag(TagUtil.SESSION_TAG) }; cache.InsertAsync(key, item, DSWriteOption.None, null); } }
public void InsertAsync(string sessionId, string key, object value) { _cache.InsertAsync(key, value, null, null, null); }