Created
March 10, 2020 07:47
-
-
Save EngRajabi/770d05d1c0518b43b94820a839adadd1 to your computer and use it in GitHub Desktop.
CacheMethodAttribute.cs
This file contains 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
[AttributeUsage(AttributeTargets.Method)] | |
public class CacheMethodAttribute : Attribute | |
{ | |
public CacheMethodAttribute(int secondsToCache = 10) | |
{ | |
SecondsToCache = secondsToCache; | |
} | |
public int SecondsToCache { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment