public static void Set(string key, object value) { var cacheConfig = CacheConfigContext.GetCurrentWrapCacheConfigItem(key); cacheConfig.CacheProvider.Set(key, value, cacheConfig.CacheConfigItem.Minitus, cacheConfig.CacheConfigItem.IsAbsoluteExpiration, null); }
public static void Remove(string key) { var cacheConfig = CacheConfigContext.GetCurrentWrapCacheConfigItem(key); cacheConfig.CacheProvider.Remove(key); }
public static object Get(string key) { var cacheConfig = CacheConfigContext.GetCurrentWrapCacheConfigItem(key); return(cacheConfig.CacheProvider.Get(key)); }