How do I set CacheCow Expires for an action?
I am creating asp.net webapi and trying to use CacheCow but I cannot set the expiration time like CacheOutput
[CacheOutput(ClientTimeSpan = 100, ServerTimeSpan = 100)]
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
}
How can I do this using CacheCow ?
+3
Kastour
source
to share
1 answer
Cachecow defines the caching policy. you can quote above using below
[HttpCacheControlPolicy(true, 100)]
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
}
0
Suresh chahal
source
to share