Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Clean Cache #225

Open
hchen2020 opened this issue Nov 2, 2023 · 1 comment
Open

Feature: Clean Cache #225

hchen2020 opened this issue Nov 2, 2023 · 1 comment

Comments

@hchen2020
Copy link

Is it possible to provide some approaches to clean the cache in MemoryCache?

@pamidur
Copy link
Owner

pamidur commented Dec 1, 2024

This is quite easy to do, make your own implementation of MemoryCacheBaseAttribute like this https://github.com/pamidur/aspect-injector/blob/master/aspects/Cache/MemoryCacheAttribute.cs
in which expose cache controls, for example. If you'd like to contribute your implementation, I'm going to gladly accept your PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants