Created
November 20, 2015 15:34
-
-
Save asimmon/ff78ad4abdfce53897bc to your computer and use it in GitHub Desktop.
Caching method results with AOP (decorate)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CacheResult(Duration = 1000)] | |
public string Process(string arg) | |
{ | |
return Guid.NewGuid().ToString("N"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment