Skip to content

Developers observe more efficient expiration checks within MemoryCache #47239

@jeffhandley

Description

@jeffhandley

Previously, we avoided using a Timer for checking cache expiration because such usage would prevent recycling of idle services; this constraint no longer exists. With a Timer-based expiration check, MemoryCache APIs will no longer incur the cost of checking expiration time to spawn a background task to remove expired items. This will yield a ~10% RPS performance gain. See #45842 for more performance benchmark details and conversation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bottom Up WorkNot part of a theme, epic, or user storyPriority:3Work that is nice to haveUser StoryA single user-facing feature. Can be grouped under an epic.area-Extensions-Cachingtenet-performancePerformance related issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions