WebMethodAttribute.CacheDuration Property

When creating a web service based data abstraction layer / façade, if you have methods that return “type” tables such as counties/states or employee types; caching the response to these requests improves performance by reducing db lookups for data that rarely changes. Simply apply the CacheDuraction property to the WebMethod attribute specifying the number of [...]


Add comment