c# - Caching attribute for method? -


Maybe it is dreaming, but is it possible to create a characteristic that the production of a function cache (Say, cache in HTR timetime) and actually returns the value from the cache instead of executing the function, when the parameters of the function are the same?

When I say a function, I am talking about any function, whether it extracted data, a db, even if it adds two integer, or it extends the contents of the file or not. Any function

Your best bet is I do not know what you need, but it's definitely Well, if you find one, be sure to publish the answer here.

EDIT: Also, googling gives some links to "postsharp caching", like this:

UPDATE: I recently stumbled on this article: it's a post-shadow-based The library describes if you are still looking for a solution.

Comments