demokritos
demokritos

Reputation: 1446

Removing Spring.Cache

I am trying to clear the cache for my integration testing. I could find "InvalidateCache" attribute in Spring documentation, but i do not want to touch the real function and change the attribute. I think I can't use .Net's HttpContext.Cache.Remove since my integration test application is not web application. Anyone knows how to do it?

Upvotes: 0

Views: 894

Answers (1)

BennyM
BennyM

Reputation: 2856

I think I can't use .Net's HttpContext.Cache.Remove since my integration test application is not web application.

Why don't you create an abstraction on it? An ICache interface with a clear method for instance. Then you can use an in memory cache for your integration testing.

Upvotes: 1

Related Questions