Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/asimmon/dotnetslidingcacheaop
- Owner: asimmon
- Created: 2017-07-29T06:20:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T02:39:18.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T13:57:21.126Z (about 2 months ago)
- Language: C#
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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