Aspect Oriented Programming style Caching with Castle Windsor #1
Labels
Comments
Very cool! Are you thinking about handling cache invalidation or is it not necessary in your case? Would make for a great follow up post (hint hint ;) |
Well, it's all academic. We're not actually using this :) It is possible to give a cache-timeout in the Enterprise Edition on github: [Cached(TimeoutInMinutes = 5, CacheKeyGenerator = typeof(DummyCacheKeyGenerator), CacheRegion = "region")]
public virtual DateTime CachedMethodWithSettings(string argumentOne, int argumentTwo)
{
return DateTime.Now;
} |
Am I correct that the DefaultCacheProvider doesn't check this at the moment? |
On line 41 an item is added to the cache with an absolute expiration. The cache implementation itself is responsible for invalidation. |
Yes, I'd seen that. Just wasn't sure if I was missing anything. So I understood it correctly. Cool, thanks! Nice, clean implementation by the way! |
Thanks! Haven't actually used it though, so it's all just an exercise now. |
Exercise is good :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: