![]() | Simple |
A simple utility class that uses a temp folder as a cache for strings.
NOTE: Two versions of this class used to exist, one for objects serialized as XML and one for JSON. Having this tiny library depend on a JSON library was a heavyweight burder and caused version clashes with calling apps, so this class remains and it simply saves and restores plain strings. It's the callers job to perform the serialization.
public static class SimpleFileCache
The SimpleFileCache type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Get | Attempts to get a string from the cache if it is not older than a specified expiry time in minutes. |
![]() ![]() | Put | Puts a string into the cache. |