IBaseBusinessCacheService.cs 530 B

1234567891011121314151617181920212223242526
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. namespace YiSha.Business.Cache.IService
  4. {
  5. public interface IBaseBusinessCacheService<T>
  6. {
  7. /// <summary>
  8. /// 缓存Key
  9. /// </summary>
  10. string CacheKey { get; }
  11. /// <summary>
  12. /// 删除
  13. /// </summary>
  14. /// <returns></returns>
  15. bool Remove();
  16. /// <summary>
  17. /// 获取列表
  18. /// </summary>
  19. /// <returns></returns>
  20. Task<List<T>> GetList();
  21. }
  22. }