 | SimpleFileCacheGet Method |
Attempts to get a string from the cache if it is not older than a specified expiry time in minutes.
Namespace: Orthogonal.Common.BasicAssembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-29 08:29 GMT+10
Syntaxpublic static string Get(
string key,
int expireMinutes
)
Parameters
- key String
- The unique key that identifies the string in the cache.
- expireMinutes Int32
- The expiry minutes of the cached object. If the object has been in the
cache for longer than the specified number of minutes then it is considered expired
and will not be retrieved.
Return Value
StringA string if it exists in the cache with the specified
key and it was not
cached more than
expireMinutes minutes ago.
See Also