An abp application module helps administrators to manage the app cache data.
-
Install the following NuGet packages. (see how)
- EasyAbp.CacheManagement.Application
- EasyAbp.CacheManagement.Application.Contracts
- EasyAbp.CacheManagement.Domain
- EasyAbp.CacheManagement.Domain.Shared
- EasyAbp.CacheManagement.EntityFrameworkCore
- EasyAbp.CacheManagement.HttpApi
- EasyAbp.CacheManagement.HttpApi.Client
- (Optional) EasyAbp.CacheManagement.MongoDB
- (Optional) EasyAbp.CacheManagement.Web
- (Optional) EasyAbp.CacheManagement.StackExchangeRedis
-
Add
DependsOn(typeof(CacheManagementXxxModule))
attribute to configure the module dependencies. (see how) -
Add
builder.ConfigureCacheManagement();
to theOnModelCreating()
method in MyProjectMigrationsDbContext.cs. -
Add EF Core migrations and update your database. See: ABP document.
-
Add permissions to the roles you want.
-
Add your own cache items.
-
Enjoy this wonderful module.
- Cache values modification.
- More detailed documentations.
- More drivers.
- Unit tests.