Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/asimmon/dotnetslidingcacheaop

Sample application that shows how to use an aspect to cache the result of any method for a specific duration.
https://github.com/asimmon/dotnetslidingcacheaop

Last synced: 9 days ago
JSON representation

Sample application that shows how to use an aspect to cache the result of any method for a specific duration.

Awesome Lists containing this project

README

        

Sample application that shows how to use an thread-safe aspect to cache the result of any method invocation for a specific duration.

### How it's done

Castle DynamicProxy provides AOP. You can modify the algorithm to make it work with Microsoft Unity.

The caching interceptor is meant to be used as a proxy of dependencies resolved with a DI container.

### Requirements to run the tests:

* .NET Core
* Visual Studio 2017, Visual Studio for Mac or .NET Core CLI as the new csproj format is used