Using attributes to cache a method's return results in c#
- by SP
In webmethods, it is very simple to implement caching by annotating [WebMethod(CacheDuration...] attribute. Can we create something similar for non-webmethods, such as Static methods?
Any help/tip is appreciated. Thanks in advance.