Class EntityCacheWithObjectMapper<TEntity, TEntityCacheItem, TKey>
Inheritance
object
EntityCacheBase<TEntity, TEntityCacheItem, TKey>
EntityCacheWithObjectMapper<TEntity, TEntityCacheItem, 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 EntityCacheWithObjectMapper<TEntity, TEntityCacheItem, TKey> : EntityCacheBase<TEntity, TEntityCacheItem, TKey>, IEntityCache<TEntityCacheItem, TKey>, ILocalEventHandler<EntityChangedEventData<TEntity>>, IEventHandler where TEntity : Entity<TKey> where TEntityCacheItem : class
Type Parameters
| Name | Description |
|---|---|
| TEntity | |
| TEntityCacheItem | |
| TKey |
Constructors
EntityCacheWithObjectMapper(IReadOnlyRepository<TEntity, TKey>, IDistributedCache<TEntityCacheItem, TKey>, IUnitOfWorkManager, IObjectMapper)
Declaration
public EntityCacheWithObjectMapper(IReadOnlyRepository<TEntity, TKey> repository, IDistributedCache<TEntityCacheItem, TKey> cache, IUnitOfWorkManager unitOfWorkManager, IObjectMapper objectMapper)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyRepository<TEntity, TKey> | repository | |
| IDistributedCache<TEntityCacheItem, TKey> | cache | |
| IUnitOfWorkManager | unitOfWorkManager | |
| IObjectMapper | objectMapper |
Properties
ObjectMapper
Declaration
protected IObjectMapper ObjectMapper { get; }
Property Value
| Type | Description |
|---|---|
| IObjectMapper |
Methods
MapToCacheItem(TEntity)
Declaration
protected override TEntityCacheItem MapToCacheItem(TEntity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | entity |
Returns
| Type | Description |
|---|---|
| TEntityCacheItem |
Overrides
Volo.Abp.Domain.Entities.Caching.EntityCacheBase<TEntity, TEntityCacheItem, TKey>.MapToCacheItem(TEntity)