Software Development Kit
Usage
A reference to the SDK DLLs is required, see how to add a reference to the MicroMighty SDK DLLs.
The class can be used directly like a static class without being instantiated (see example files).
Practical Examples
Configuration
Web.Config should include the following variables in order for EasyCache to run correctly,
If no variables added then the module will not run and EasyCacheActive will be set to "false".
Add the following entries in the "<appSettings>" section of "<configuration>"
<!-- MicroMighty SDK : EasyEmailSender Variables -->
<add key="EasyCacheActive" value="true
" />
<add key="EasyCacheCommaSeparatedCacheReceiverURLsOfAllowedMachines" value="" />
Make sure that IIS is configured to allow cache objects to last enough time based on your needs
Internet Information Services (IIS) -> Application Pools -> Your_Application_Pool -> Advanced Settings
  • Set the "Process Model" -> Idle Time-out to : 43200 minutes
  • Set the "Recycling" -> Regular Time Interval to : 43200 minutes
    (it has to be at least whatever the Idle Time-out is)
The maximum value is 43200 minutes (60 minutes x 24 hours x 30 days)
Also see Process Model Settings and Configure Idle Time-out Settings for an Application Pool
Notes
Most of the shared hosting companies do not allow to cache objects for more than just few minutes.
For testing in a multi machine environment on a localhost - create two or more separate web applications.
ProcessCachePerRequest() has a security feature that will prevent processing cache from an unauthorized request URLs, if a request comes from a machine that is not in the list of allowed machines it will error out.
  • EasyCacheActive is used to turn on and off caching (value can be "true" or "false"), cache objects can still be removed even when EasyCache is not active but no new objects will be created or used.
  • EasyCacheCommaSeparatedCacheReceiverURLsOfAllowedMachines is a comma separated list of all the machines that host the web application in a multi server environment such as web garden (it is only used if it has some value), each comma separated value must include the scheme and name of the page that is setup to receive and synchronize the cache objects, for example: "http://localhost/App1/Cache/CacheReceiver.aspx, http://localhost/App2/Cache/CacheReceiver.aspx"
You can use this SDK for personal use only, any commercial use or use for other
type of organization including non profit on a production server is not allowed.

You may not publish, sell, re-distribute, rent, lease or re-license any content
contained in this source code and/or DLLs and/or other components of the SDK
without an explicit written permission agreement signed by MicroMighty, Inc.

MicroMighty, Inc. reserves the right to permanently cancel without any warnings
neither refund a license that is suspected of being used illegitimately or that
violates the EULA (http://MicroMighty.com/SDK/EULA/)