filipw / Strathweb.CacheOutput

ASP.NET Web API CacheOutput - library to allow you to cache the output of ApiControllers
Other
883 stars 254 forks source link

It is not possible to set cache timeout in milliseconds #263

Open onetocny opened 3 years ago

onetocny commented 3 years ago

First of all I would like to thank you for CacheOutput library which is really helpful. Currently it is possible to set caching time in seconds only. This is fine for most of cases, but it becomes a problem when you want to set timeout lower than second. My suggestion is to add another two properties (for server and client) of type TimeSpan to the CacheOutputAttribute class. I did a quick code overview and it should not be a big deal to make this working. if this is wanted I am open to implement it and share pull request with the community.

onetocny commented 3 years ago

Created pull request with suggested functionality #264.