Cached ValuesTiered CacheThis library uses a tiered cache system, utilizing both the local cache as well as a caching server running the release candidate of AppFabric. Some data is stored in just the local cache, some stored in just the caching server, and some data is cached in both locations. The decision of where objects will be cached is based on frequency of use and overall size of the data. The following data is stored only in the local cache:
The following data is stored only in the remote cache due to the possible size of the data and required persistence:
The following data is stored in the remote cache for persistence, but also is cached in the local cache for the duration of one minute to speed up overall response time. When the value in the local cache expires, the value from the remote cache is retrieved and will once again be cached locally for one minute, until no longer needed. The number of these items is also limited, to avoid overloading the local cache. If the number of locally cached objects of a type already exceeds the limit, then the item is not locally cached and will be pulled from the remote cache each time it is needed to fulfill a request. If the number of locally cached objects of the type drops below the limit in the future, and the object is retrieved from the network cache, then it will once again be cached locally for one minute.
If there is no caching server, or it is disabled, all objects are cached in the local cache. In that case, the values which are usually doubly cached continue to cache for one minute locally. The search and browse results are locally cached for five minutes. Cache ManagementThe cached values are managed by the |