asp.net web api - Web API action cache -
I am implementing a cache mechanism for some WebAPI tasks I found that the following options are useful, but I'm not sure That's the best way:
-
I'm going to use the context. [Cache ["[I will set the results from the database] [] [here] [name of action here and
-
the value of all the parameters passed for the action filter]"] = [here] Find the string in the name and the parameter in context. Cash Collections If present, instead of performing the original action, the data will return.
Is this the best way?
BTW, I do not have any third party libraries
Comments
Post a Comment