Skip to content

Use EntityCacheItemWrapper in cache config#24772

Merged
EngincanV merged 2 commits intorel-10.0from
EntityCacheServiceCollectionExtensions
Jan 30, 2026
Merged

Use EntityCacheItemWrapper in cache config#24772
EngincanV merged 2 commits intorel-10.0from
EntityCacheServiceCollectionExtensions

Conversation

@maliming
Copy link
Member

Resolve #24770

Copilot AI review requested due to automatic review settings January 29, 2026 11:03
@maliming maliming added this to the 10.0-patch-final milestone Jan 29, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes entity cache option configuration so the options set via AddEntityCache(...) are applied to the actual distributed cache used by entity caching (EntityCacheItemWrapper<T>), addressing #24770.

Changes:

  • Configure AbpDistributedCacheOptions using EntityCacheItemWrapper<T> in all AddEntityCache overloads.
  • Update the TestApp module to register entity caches with explicit DistributedCacheEntryOptions.
  • Add tests asserting the configured cache entry options are applied for entity cache distributed caches.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Caching/EntityCacheServiceCollectionExtensions.cs Switches cache option configuration to target EntityCacheItemWrapper<T> so entity cache options are actually applied.
framework/test/Volo.Abp.TestApp/Volo/Abp/TestApp/TestAppModule.cs Registers entity caches with explicit expiration options to validate configuration behavior.
framework/test/Volo.Abp.TestApp/Volo/Abp/TestApp/Testing/EntityCache_Tests.cs Adds tests verifying the configured default entry options are applied (via reflection on DistributedCache).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@EngincanV EngincanV merged commit be1bc2a into rel-10.0 Jan 30, 2026
8 of 10 checks passed
@EngincanV EngincanV deleted the EntityCacheServiceCollectionExtensions branch January 30, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants