Class EntityCacheWithoutCacheItem<TEntity, TKey>
Inheritance
object
EntityCacheBase<TEntity, TEntity, TKey>
EntityCacheWithoutCacheItem<TEntity, TKey>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Domain.Entities.Caching
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public class EntityCacheWithoutCacheItem<TEntity, TKey> : EntityCacheBase<TEntity, TEntity, TKey>, IEntityCache<TEntity, TKey>, ILocalEventHandler<EntityChangedEventData<TEntity>>, IEventHandler where TEntity : Entity<TKey>
Type Parameters
| Name | Description |
|---|---|
| TEntity | |
| TKey |
Constructors
EntityCacheWithoutCacheItem(IReadOnlyRepository<TEntity, TKey>, IDistributedCache<TEntity, TKey>, IUnitOfWorkManager)
Declaration
public EntityCacheWithoutCacheItem(IReadOnlyRepository<TEntity, TKey> repository, IDistributedCache<TEntity, TKey> cache, IUnitOfWorkManager unitOfWorkManager)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyRepository<TEntity, TKey> | repository | |
| IDistributedCache<TEntity, TKey> | cache | |
| IUnitOfWorkManager | unitOfWorkManager |
Methods
MapToCacheItem(TEntity)
Declaration
protected override TEntity MapToCacheItem(TEntity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | entity |
Returns
| Type | Description |
|---|---|
| TEntity |
Overrides
Volo.Abp.Domain.Entities.Caching.EntityCacheBase<TEntity, TEntity, TKey>.MapToCacheItem(TEntity)