Caching method results via attributes
Would it be possible to have some CacheableAttribute or something similar to be able to add to methods which would allow caching of their results? This would also need attributes on clearing the cache too.
That sounds a lot like what Spring offers in the Java world with its Caching abstraction: http://www.baeldung.com/spring-cache-tutorial https://spring.io/guides/gs/caching/
I'm very interested in this because I have a story on my current project backlog to implement basically Spring's capability in C#.
I have currently no plans to implement/add something like that to CacheManager.
Thank you letting me know!