| | |
| | | { |
| | | private const string _contentKey = "SysUnitNameList"; |
| | | |
| | | private static string GetCacheKey() |
| | | internal static string GetCacheKey() |
| | | { |
| | | return CacheHelper.GetCacheKey(_contentKey); |
| | | } |
| | |
| | | MemoryCacheHelper.Remove(cacheKey); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 发布 |
| | | /// </summary> |
| | | public static void Publish(string key) |
| | | { |
| | | var cacheKey = GetCacheKey(); |
| | | MemoryCacheWipeRelationHelper.Set(key, cacheKey); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 触发 |
| | | /// </summary> |
| | | public static void Trigger() |
| | | { |
| | | var cacheKey = GetCacheKey(); |
| | | MemoryCacheWipeRelationHelper.Trigger(cacheKey); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |