dotnet / dotnet/aspnetcore

allow CacheView cache expiry

Open
#68,455 1 comment 0 reactions 0 assignees View on GitHub
area-blazor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

I would like to be able to force the expiry of the CacheView based on some logic check and/or from a backgound service; the expiry may be for ALL occurance of the CacheView and/or a specific instance of the cache view using the vary by.

### Describe the solution you'd like

CacheViewService.ExpireCacheViewAsync(key, ....);
CacheViewService.ExpireCacheView(key, ....);

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the CacheView and CacheViewService APIs and reading how expiry and vary-by instances are currently handled. Define the behavior for expiring all CacheView entries versus a specific vary-by instance, including synchronous and asynchronous entry points; done means the requested expiration scenarios are supported and verified by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.