Questions tagged [cachecow]

CacheCow is an open source framework which provides server side caching for ASP.NET Web API and client side caching for NetHTTPClient on .NET

CacheCow is an open source framework which provides server side caching for ASP.NET Web API and client side caching for NetHTTPClient on .NET

Website: https://github.com/aliostad/CacheCow

11 questions
14
votes
3 answers

Caching ASP.NET Web API with CacheCow

I am trying to implement caching using CacheCow. I have two problems: In some cases I need to invalidate manually the cache of some resources. For example, I have a resource that it is called purchase, and other that is called pointMovements. They…
jvrdelafuente
  • 1,992
  • 14
  • 23
4
votes
3 answers

Getting User Id in Web Api handler when using Cachecow

I have a MVC Web Api project and am logging all requests and responses using a MessageHandler. When an api request comes in, the bearer token in the header lets Asp.Net do its thing and authenticates that user. The message handler therefore knows…
richardb
  • 943
  • 1
  • 10
  • 27
3
votes
1 answer

how to set CacheCow Expires for an action?

I create asp.net webapi and try to use CacheCow but i can't set the Expiration time like CacheOutput [CacheOutput(ClientTimeSpan = 100, ServerTimeSpan = 100)] public IEnumerable Get() { return new string[] { "value1", "value2" }; } How…
Kastour
  • 117
  • 3
  • 8
2
votes
1 answer

Safest way to cache information in an ASP.NET MVC 5 web site

I'm building a KPI monitoring web app. It used to work perfectly fine with a few users, but lately the load increased, causing problems with our backend systems. Some of them are very expensive to license, others are hard to scale mainframes. It is…
1
vote
1 answer

Using CacheCow to Cache Based On Parameter

I have a webapi endpoint that looks like the following in my Controller: [HttpGet] public IHttpActionResult GetPerson( string term = null, string workspace = null) { try { logger.Info("AvPerson start:…
Rymnel
  • 4,515
  • 3
  • 27
  • 28
1
vote
1 answer

Caching options in ASP.NET Web API

Why doesn't Web API come with caching features like MVC actions? Is it because these are HTTP based services so no state in between calls? I have seen a few open sources like CacheCow and Strathweb, but not sure whom to pick and why? What are the…
F11
  • 3,703
  • 12
  • 49
  • 83
1
vote
1 answer

CacheCow error in WebAPI Global.asax

I'm getting this error: Method 'RemoveResource' in type 'CacheCow.Server.InMemoryEntityTagStore' from assembly 'CacheCow.Server, Version=0.4.12.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. I cant find any info on it.…
Sean
  • 14,359
  • 13
  • 74
  • 124
0
votes
0 answers

Caching with Owin WebAPI

Can I please have an example of caching with Owin Webapi? I tried to use CacheCow but there is no example for Owin Webapi. Thank you. sample code of caching using Owin Webapi.
frans
  • 1
0
votes
0 answers

HttpCaching - ETag generated per client or per token?

I am working in ASP.NET WEB API with oAuth2 bearer token authentication and HttpCaching with CacheCow. The implementation already done and i am verifying the code and got confused with caching. Cache Handler Configuration: The cache configuration…
Akhil
  • 1,918
  • 5
  • 30
  • 74
0
votes
1 answer

cachecow with http post method

I am thinking of adding cachecow to our production web api. All the examples I see are for GET requests. The endpoint I would like to cache is a POST request that takes a view model of many search filters. I can not seem to find the answer to my…
MIKE
  • 1,039
  • 7
  • 24
0
votes
1 answer

Using CacheCow with asp.net MVC kendoUI

I've been looking into installing CacheCow ( https://github.com/aliostad/CacheCow ) , by just applying the nuget package and then adding: GlobalConfiguration.Configuration.MessageHandlers.Add(new…
Phil
  • 1,852
  • 2
  • 28
  • 55