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