namespace ASC.Common.Caching; [Singletone] public interface ICacheNotify where T : IMessage, new() { void Publish(T obj, CacheNotifyAction action); Task PublishAsync(T obj, CacheNotifyAction action); void Subscribe(Action onchange, CacheNotifyAction action); void Unsubscribe(CacheNotifyAction action); }