I have a web service that queries data from this json file, but i don't want the web service to have to access the file every time. I'm thinking that maybe i can store the data somewhere else (maybe in memory) so the web service can just get the data from there the next time it's trying to query the same data. I kinda understand what needs to be done but I'm just not sure how to actually do it. How do we persist data in a web service?
Update: Both suggestions, caching and using static var, look good. Maybe i should just use both so i can look at one first, if it's not in there, use the second one, if it's not in there either, then i'll look at the json file.