CachingProvider provides basic component of cache system, by default it will use HttpRuntime.Cache.

Namespace: DotNetNuke.Services.Cache
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public abstract class CachingProvider
Visual Basic
Public MustInherit Class CachingProvider

Remarks

Using cache will speed up the application to a great degree, we recommend to use cache for whole modules, but sometimes cache also make confuse for user, if we didn't take care of how to make cache expired when needed, such as if a data has already been deleted but the cache arn't clear, it will cause un expected errors. so you should choose a correct performance setting type when you trying to cache some stuff, and always remember update cache immediately after the data changed.

Examples

C# Copy imageCopy Code
public static void ClearCache(string cachePrefix)
{
    CachingProvider.Instance().Clear("Prefix", GetDnnCacheKey(cachePrefix));
}

Inheritance Hierarchy

System..::..Object
  DotNetNuke.Services.Cache..::..CachingProvider
    DotNetNuke.Services.Cache..::..FBCachingProvider

See Also