| 1234567891011121314151617181920212223 |
- using System.Threading.Tasks;
- using Abp.Runtime.Caching;
- namespace Abp.Domain.Entities.Caching
- {
- public interface IEntityCache<TCacheItem> : IEntityCache<TCacheItem, int>
- {
- }
- public interface IEntityCache<TCacheItem, TPrimaryKey>
- {
- TCacheItem this[TPrimaryKey id] { get; }
- string CacheName { get; }
- ITypedCache<TPrimaryKey, TCacheItem> InternalCache { get; }
- TCacheItem Get(TPrimaryKey id);
- Task<TCacheItem> GetAsync(TPrimaryKey id);
- }
- }
|